Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Issue 3056042: Make the width of overlay pages flexible. (Closed)

Created:
10 years, 4 months ago by satorux1
Modified:
9 years, 7 months ago
CC:
chromium-reviews, dhg, arv (Not doing code reviews), ben+cc_chromium.org
Visibility:
Public.

Description

Make the width of overlay pages flexible. Before the change, overlays take up the whole width of the page except padding, thus overlays are very wide. With this change, overlays only take up the width that is necessary to show the contents inside. The individual overlays can control the width using CSS as needed. If you want the original behavior (taking up the whole width), you could add "-webkit-box-flex: 1" to the overlay's CSS. If you want to set a fixed width, you could add something like "width: 600px" in the overlay's CSS. Note that the ability to set the fixed with is necessary to follow a suggestion from Cole regarding the size of the overlay for adding languages. See before.png and after.png in crosbug.com/4573 for details. TEST=manually BUG=chromium-os:4573

Patch Set 1 #

Patch Set 2 : use webkit-box instead #

Patch Set 3 : get rid of overlayview #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -9 lines) Patch
M chrome/browser/resources/options.html View 1 chunk +5 lines, -7 lines 0 comments Download
M chrome/browser/resources/options/options_page.css View 1 2 2 chunks +5 lines, -2 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
satorux1
10 years, 4 months ago (2010-08-03 09:09:02 UTC) #1
arv (Not doing code reviews)
I don't think we need to do it this way. We can use flex boxes ...
10 years, 4 months ago (2010-08-03 17:02:08 UTC) #2
satorux1
On 2010/08/03 17:02:08, arv wrote: > I don't think we need to do it this ...
10 years, 4 months ago (2010-08-04 00:09:49 UTC) #3
satorux1
Uploaded the new change. Now the change is very simple. I'm updating the description... On ...
10 years, 4 months ago (2010-08-04 00:37:51 UTC) #4
arv (Not doing code reviews)
LGTM
10 years, 4 months ago (2010-08-04 00:48:10 UTC) #5
satorux1
Updated the description. The patch changes the existing behavior (overlays are very wide -> overlays ...
10 years, 4 months ago (2010-08-04 00:56:43 UTC) #6
satorux1
The problem is that we have three levels of divs: <div id=overlay> <- display: -webkit-box; ...
10 years, 4 months ago (2010-08-04 01:20:50 UTC) #7
satorux1
On 2010/08/04 01:20:50, satorux1 wrote: > The problem is that we have three levels of ...
10 years, 4 months ago (2010-08-04 01:43:33 UTC) #8
satorux1
On 2010/08/04 01:43:33, satorux1 wrote: > On 2010/08/04 01:20:50, satorux1 wrote: > > The problem ...
10 years, 4 months ago (2010-08-04 01:59:52 UTC) #9
arv (Not doing code reviews)
10 years, 4 months ago (2010-08-04 17:18:03 UTC) #10
LGTM

nice

Powered by Google App Engine
This is Rietveld 408576698