colelawrence / Touch-Splitter-jQuery

A high performance html splitter compatible with touch events
14 stars 7 forks source link

Nested splitters #11

Open Stan92 opened 8 years ago

Stan92 commented 8 years ago

Hi, I wonder to know what would be the best practices for adding nested splitters. Currently, this is what I do.

<div class="split-me-container">
    <div class="split-me">
          <div></div>
          <div class="split-me1">
        <div></div>
        <div></div>
        </div>
    </div>
</div>
<script>
     splitter = $('.split-me').touchSplit({leftMin:100, rightMin:100, thickness: "10px"})
     splitter = $('.split-me1').touchSplit({leftMin:100, rightMin:100, thickness: "10px"})
     splitter.getFirst().touchSplit({thickness: "20px", orientation:"vertical"})
</script>

Do I have to create a new splitter instance? or is that correct? Problem using my code, is when I drag the frist left vertical splitter, it doesn't take into account the rightMin of the second vertical splitter. Any help?

colelawrence commented 8 years ago

It may not be robust enough to handle that case, and modifications to the library may be needed in order for that to work.

On Wed, 27 Jul 2016, 5:02 AM Stan92 notifications@github.com wrote:

Hi, I wonder to know what would be the best practices for adding nested splitters. Currently, this is what I do.

Do I have to create a new splitter instance? or is that correct? Problem using my code, is when I drag the frist left vertical splitter, it doesn't take into account the rightMin of the second vertical splitter. Any help?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ZombieHippie/Touch-Splitter-jQuery/issues/11, or mute the thread https://github.com/notifications/unsubscribe-auth/ACyjU_ZhZdkwEMSX420Pthyen7kZIU41ks5qZyzMgaJpZM4JWB-r .