Layout the sidebar in the same vertical position regardless of the viewer width (issue 4052, bug 850591)#8993
Layout the sidebar in the same vertical position regardless of the viewer width (issue 4052, bug 850591)#8993timvandermeij merged 1 commit intomozilla:masterfrom Snuffleupagus:sidebar-constant-position
Conversation
|
Based on this patch, I've attempted to implement sidebar resizing that's limited to modern browsers with support for CSS variables. The, proof-of-concept, patch is available at master...Snuffleupagus:sidebar-resize. Based on the simplicity of the solution, I really think that we ought to consider if/why we need to go through the trouble of implementing a truly backwards compatible solution!? |
|
Indeed that looks really good to me. Personally I don't think we really need a completely backwards compatible solution. All modern browsers should support this just fine and if some really old IE version doesn't, I personally don't care since we're going to drop support for those old versions anyway. If @yurydelendik or @brendandahl are fine with this, we can proceed with this (and the other open patch). |
|
Is this patch still works (somehow) with old browsers? In this case maintains some accetable viewer appearance without breaking a layout too much. P.S. If yes, we need to land it. |
|
Comment #8993 (comment) is somewhat orthogonal to the current PR; my apologies for causing unnecessary confusion here! The purpose of this PR is to address a number of things that, as I see it, makes it much more difficult to implement a (maintainable) solution for the long-standing issue #2072. Please note that there should be no compatibility breaking changes in this PR. The major change here is simply that the sidebar is now placed in the same vertical position regardless of the viewer width, please see the comparison below. The reason for this change is based on a number things:
|
…ewer width (issue 4052, bug 850591) If we want to (eventually) make it possible to resize the sidebar, then having its width indirectly affect the toolbar is going to wreck havoc on the media queries used to show/hide buttons in the main toolbar (since many of them depend on the toolbar state, and thus its width). Updating all of the media queries dynamically with JavaScript seems like a non-starter, given that it'd cause *very* messy code. It thus seem to me that we'd need to fix the position of the sidebar, to have any hope of (in the short term) addressing issue 2072. Hence, I'm suggesting that the we always layout the sidebar in a consistent vertical position, and only animate the `viewerContainer` rather than the entire `mainContainer`. Fixes 4052. Fixes bug 850591.
|
/botio-linux preview |
From: Bot.io (Linux m4)ReceivedCommand cmd_preview from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.67.70.0:8877/b6e3eef29d6f0e3/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.67.70.0:8877/b6e3eef29d6f0e3/output.txt Total script time: 2.45 mins Published |
|
Nice work! Sorry for the delay in review by the way; I didn't have too much spare time lately and I wanted to test this well. |
…osition Layout the sidebar in the same vertical position regardless of the viewer width (issue 4052, bug 850591)

If we want to (eventually) make it possible to resize the sidebar, then having its width indirectly affect the toolbar is going to wreck havoc on the media queries used to show/hide buttons in the main toolbar (since many of them depend on the toolbar state, and thus its width).
Updating all of the media queries dynamically with JavaScript seems like a non-starter, given that it'd cause very messy code. It thus seem to me that we'd need to fix the position of the sidebar, to have any hope of (in the short term) addressing issue #2072.
Hence, I'm suggesting that the we always layout the sidebar in a consistent vertical position, and only animate the
viewerContainerrather than the entiremainContainer.Fixes #4052.
Fixes bug 850591.