-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Draggable: Modified to account resizable handles size in document containment mode, used by ui.dialog. Fixed #9521 ui.Dialog: Resizable dialogs move/resize out of viewport boundary - which results in scrollbar in window #1086
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
Conversation
…tainment mode, used by ui.dialog. Fixed #9521 ui.Dialog: Resizable dialogs move/resize out of viewport boundary - which results in scrollbar in window
@dekajp, thanks for contributing! There are several issues with the patch that need addressing:
|
_isResizableHandlersAttached: function (){ | ||
var handle; | ||
this.resizableHandle = this.resizableHandle || {}; | ||
this.resizableHandle.attached = 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This property is unnecessary. You're only using it in one spot, and only to avoid subtracting zero from a number.
I'm going to close this pull request for now. @dekajp , I encourage you to submit a new one with corrections if you'd like. Thanks again! |
@mikesherov Thanks for all your comments , i will make the changes and resubmit code. |
@dekajp If you send a new PR, please take a new approach. Draggable cannot directly query for resizable-related code. This is a generic problem that needs to be solved. |
@scottgonzalez , if draggable can not directly query resizable-handles , so what other way you suggest ? i assumed it is safe to query the resizable handles. |
|
@scottgonzalez , further looking into code in |
The resizable handles are causing a problem, but the problem is not that they are resizable handles. You need to address the cause, not the symptom. |
@scottgonzalez if i understand correctly since |
Modifying the resizable CSS is fine, though you probably want to modify the dialog CSS instead, since that's where the problem actually exists. |
@scottgonzalez ,i am going to look at css both dialog and resizable after work . I re-read several times your above comment |
@scottgonzalez , I could replicate the issue with [Dragger + Resizable] and [Dialog + Dragger + Resizable] But by overriding the styles - ( actually overriding the positions of resizable handles ) the problem can be fixed. Let me know if this approach looks good to you. |
It's really hard to tell what's changing by looking at a fiddle, but I'm assuming you just changed the left/top for the dialog's SE handle. That's fine, as long as we don't regress on http://bugs.jqueryui.com/ticket/4575. |
just want to let you know i am looking at this http://bugs.jqueryui.com/ticket/4575 (http://jsfiddle.net/bchiasson/Lfx8J/5/) and the fiddle in it i can see the SE image . updated fiddle to latest version of jquery-ui 1.10.2 i can not see the SE image in (Chrome 29, Opera 16 and FF 23 ) in MacOS http://jsfiddle.net/Lfx8J/24/ . i am not sure if this is a defect or expected behavior. can you please confirm . |
You shouldn't see it. It was intentionally removed. |
New Pull request - #1092 |
Draggable: Modified to account resizable handles size in document containment mode, used by ui.dialog. Fixed #9521 ui.Dialog: Resizable dialogs move/resize out of viewport boundary - which results in scrollbar in window