You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//save initial sizeself.initSize=[el.offsetWidth-self.b.left-self.b.right-self.p.left-self.p.right,el.offsetHeight-self.b.top-self.b.bottom-self.p.top-self.p.bottom];//save initial full sizeself.initSizeFull=[el.offsetWidth,el.offsetHeight];
Is the code that is causing me problems. In my case, I want the element to be resizable horizontally, and it has a height: 100%. But after these initial sizes are saved, they're applied absolutely after resize, so if the screen changes the element will not have a height of 100% anymore, but an absolute height equal to the height it has as of the first drag.
Does that make sense?
Maybe instead of saving always the full size, the draggable could save only height or only width, according to the kind of resizing being performed.
The text was updated successfully, but these errors were encountered:
Anyway, this can also be solved by an height: 100% !important CSS rule, and that's what I'm doing, so maybe the best idea here is just to add this solution to the documentation instead of implementing complicated and custom stuff.
I imagine that the following code:
Is the code that is causing me problems. In my case, I want the element to be resizable horizontally, and it has a
height: 100%
. But after these initial sizes are saved, they're applied absolutely after resize, so if the screen changes the element will not have a height of 100% anymore, but an absolute height equal to the height it has as of the first drag.Does that make sense?
Maybe instead of saving always the full size, the draggable could save only height or only width, according to the kind of resizing being performed.
The text was updated successfully, but these errors were encountered: