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: Modified the default z-index value of resizable handles. Fix... #840
Conversation
…ixed #7960 - Dialog: Modal dialogs do not disable resizables on the page.
Unit tests? |
@@ -42,7 +42,7 @@ $.widget("ui.resizable", $.ui.mouse, { | |||
maxWidth: null, | |||
minHeight: 10, | |||
minWidth: 10, | |||
zIndex: 1000 | |||
zIndex: 90 // See #7960 |
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.
stylistically, top down comments are preferred to EOL comments:
// See #7960
zIndex: 90
@mikesherov Good call. I'll add a test that makes sure the |
@mikesherov I changed the formatting and added a test. |
Much better! In general, I'll only land pull requests without tests if its not practical to do so. Thanks for updating. |
:sigh: - Do we really need a zIndex at all here? I know we've been evaluating our (ab)use of |
zIndex wars are like |
@gnarf37 Yeah I guess I've never really considered why the
I did some testing and if I simply remove those lines the plugin still works just fine. That being said I only tried some basic use cases on Chrome. If no one knows of why this option is needed in the first place I can test this more thoroughly (hit all the options, browsers, etc). |
I'm, as usual, against a complete removal of zIndex until we do a full git blame to see where and why it was introduced. |
@mikesherov The option has been in there since the beginning of git time. The initial version in git has pretty the exact same 2 lines I reference above. That being said I'm sure there must be a reason, and I'm guessing it's related to the proxy element. I'm mostly curious at this point. |
I think it's just because we want the handles to be on top of all content, even if the content has a z-index applied. This should really just be moved to the stylesheet and the option should be dropped, but that won't happen until 2.0. |
@scottgonzalez thanks for the direction - Do we have a ticket to track these zIndex uses for removal in 2.0? |
@gnarf37 The tickets will be created when we announce the API redesign for resizable. The change in this PR will just go against the dialog ticket. |
Ok, then I'm going to land as is. |
Landed in 0cd470b - squashed three commits into one, fixed whitespace in test, included button widget along with dialog dependency. |
Not sure why I missed this before, the test should be in dialog, not resizable. |
Fixed in ee8d20e |
Thanks @jzaefferer. |
...ed #7960 - Dialog: Modal dialogs do not disable resizables on the page.
See http://bugs.jqueryui.com/ticket/7960.
I was a little torn about adding the inline comment.
90
is kind of a random number so I thought having a reference might help.