Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resizer does not work properly if its left or upper pane has flex-grow of 1 #17

Open
Haixing-Hu opened this issue Jun 1, 2018 · 0 comments · May be fixed by #18
Open

resizer does not work properly if its left or upper pane has flex-grow of 1 #17

Haixing-Hu opened this issue Jun 1, 2018 · 0 comments · May be fixed by #18

Comments

@Haixing-Hu
Copy link

The resizer does not work properly if its left or upper pane has flex-grow of 1.

The following is a test case

<template>
    <multipane layout="vertical" class="container">
        <div class="left">
            <h6 class="title is-6">Pane 1</h6>
            <p class="subtitle is-6">Takes remaining available space.</p>
            <p>
              <small>
                <strong>Configured with:</strong><br/>
                flex-grow: 1<br/>
              </small>
            </p>
        </div>
        <multipane-resizer></multipane-resizer>
        <div class="right">
            <h6 class="title is-6">Pane 2</h6>
            <p class="subtitle is-6">Fluid width.</p>
            <p>
              <small>
                <strong>Configured with:</strong><br/>
                width: 50%<br/>
                min-width: 20%;<br/>
                max-width: 80%;<br/>
              </small>
            </p>
        </div>
    </multipane>
</template>

<script>
import { Multipane, MultipaneResizer } from '@/src';

export default {
  components: {
    Multipane,
    MultipaneResizer,
  },
};
</script>

<style>
.container {
  height: 600px;
  width: 100%;
}

.left {
  flex-grow: 1;
  height: 600px;
  border: 1px solid #ccc;
  background: #eee;
}

.right {
  width: 50%;
  min-width: 20%;
  max-width: 80%;
  height: 600px;
  border: 1px solid #ccc;
  background: #eee;
}
</style>
@Haixing-Hu Haixing-Hu linked a pull request Jun 1, 2018 that will close this issue
Haixing-Hu added a commit to Haixing-Hu/vue-multipane that referenced this issue Jun 1, 2018
jhlee8804 added a commit to jhlee8804/vue-multipane that referenced this issue Mar 27, 2019
…ltipane into fix-17

* 'fix-yansern#17' of https://github.com/Haixing-Hu/vue-multipane:
  fix yansern#17

# Conflicts:
#	demo/main.js
#	dist/vue-multipane.esm.js
#	dist/vue-multipane.min.js
jhlee8804 added a commit to jhlee8804/vue-multipane that referenced this issue Apr 1, 2019
…fix#19-yansern#15-yansern#14-yansern#7-yansern#17-yansern#1

* 'master' of https://github.com/vibou/vue-multipane:
  0.96
  fix issue with event names. Renamed: resize resizestart and resizestop since kebab case is not working either
  0.96
  0.96
  0.96
  Change version
  Change events name from camelcase to kebab-case

# Conflicts:
#	demo/main.js
#	dist/vue-multipane.esm.js
#	dist/vue-multipane.js
#	dist/vue-multipane.min.js
#	src/multipane.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant