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

Resizable widget in div with overflow scrolling #953

Closed
ryancoakley opened this issue Jun 23, 2015 · 4 comments
Closed

Resizable widget in div with overflow scrolling #953

ryancoakley opened this issue Jun 23, 2015 · 4 comments

Comments

@ryancoakley
Copy link

Hi,

Thanks for your tool it is great. I am having some issues with using resizable in a div with an overflow scroll.

I read this issue here where you guys fixed it:

#737

It works great with his "resizable2" widget he provided in this jsfiddle:

http://jsfiddle.net/Kermit_the_frog/4oc8bpzm/

Now that you have made it so that you can resize from the entire table instead of just the header, it seems that the functionality is not as the same..

In this jsfiddle all of my columns are resizing at the same time when I try and resize one:

http://jsfiddle.net/1417jjbt/5/

In this one using the "resizable2" widget it behaves much better (note seems you have to click a header first to be able to resize):

http://jsfiddle.net/o3zp275x/5/

(sorry if my jsfiddles are awful they are my first).

Anyways, any suggestions on what I could do to get the behavior of the resizing from the entire table and have the div in overflow as well?

Thanks!

@Mottie
Copy link
Owner

Mottie commented Jun 23, 2015

Hi @ryancoakley!

So the second demo has the behavior you want, right? You just want to make it resize without needing to click on the header first? Or am I missing something?

@ryancoakley
Copy link
Author

Hi, Thanks for the reply, but that isn't quite what I meant.

You are correct that I have to click the header to get the proper resizing, so I would like to not have to do that.

However, the main issue is that it can only be resized by dragging the header, and I am using sticky headers, so once I scroll I lose that ability when I scroll the table on the Y overflow.

So I would like for it to be also resizable by dragging the elements of the table. In my first example it allows you to resize on the table elements, but doing so makes all the columns scale at once, not just the one I am trying to resize.

So I basically think what you did in v2.21.3, might have broken the extra tweaking to make the resizable work well with tables with an x overflow:

In New v2.21.3
Performed a major overhaul on the resizable widget to add resizable handles outside of the table, so now the resizable handles can be used over the entire height of the table!
This change allows the resizable widget to work seemlessly with the stickyHeaders widget (included in this demo); sadly, to make it work with the scroller widget will require more work.

I hope that makes more sense!

Thanks again.

@Mottie Mottie closed this as completed in fa3c21f Jun 27, 2015
@Mottie
Copy link
Owner

Mottie commented Jun 27, 2015

Ok, the update is available in the master branch. Here is an updated demo.

@ryancoakley
Copy link
Author

You are amazing thank you so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants