do not calculate size with hidden elements when resizing#7417
Conversation
do not calculate size with hidden elements when resizing
|
@zaggino I think even for something small like this we'd prefer you wait to give someone a chance to review before merging. Especially since we're nearing the end of a sprint. (We usually only "self-merge" zero-risk changes like README.md edits). |
|
Ok, sorry - won't do it again. Should I revert? |
|
I think @RaymondLim or I should review it post-facto, but I don't think think we should worry about reverting unless we find some sort of problem... |
|
@zaggino Sorry, just got a chance to look at this. I'm confused by what kind of 'hidden' elements require this -- lots of Brackets bottom panels are hidden using |
|
I wonder if this may fix the problem with the sidebar that's been driving us nuts? |
|
Actual element here is |
|
@zaggino Yeah, I think it might make sense to back this out since normally @redmunds It seems unlikely to affect #3376 since we don't normally have |
|
@peterflynn FYI, The problem with #3376 seems to be in the sidebar or project tree, not the editor (even though it's triggered from editor). |
|
@redmunds Ok, in that case this seems even less likely to have any impact on that bug, since this code very specifically only applies to the |
revert #7417 - visibility:hidden _should_ leave space in the layout, and we already handle display:none properly
just a small fix when there's a hidden element (like invisible spinner toggled on demand) which causes $resizableElement to be smaller than it can be (and leaves weird space there)
Before:

After:

cc @peterflynn @RaymondLim