diff options
author | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-07 17:28:57 +0000 |
---|---|---|
committer | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-07 17:28:57 +0000 |
commit | 2fb382fd01716825e026c7833b6d170b5f412a08 (patch) | |
tree | 6d2d210583518861224a1ce40c4050e10b2675d1 /chrome/browser/resources/menu.html | |
parent | 632363c0049b3c1d54b12f5b8e2a2b16de5a97b3 (diff) | |
download | chromium_src-2fb382fd01716825e026c7833b6d170b5f412a08.zip chromium_src-2fb382fd01716825e026c7833b6d170b5f412a08.tar.gz chromium_src-2fb382fd01716825e026c7833b6d170b5f412a08.tar.bz2 |
Let menu scroll when the menu content exceeds screen height.
Menu locator limits the size of window, and scrolling is handled in DOMUI.
This does not implement mouse wheel yet as the current implementation doesn't support it. I also haven't enable this yet for dropdown as I need to figure out how this should work for OOBE. I'll address it in separate CL.
Added command line parameter to specify DOMUI html page for testing.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/3608006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61800 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/resources/menu.html')
-rw-r--r-- | chrome/browser/resources/menu.html | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/chrome/browser/resources/menu.html b/chrome/browser/resources/menu.html index 8015bdf..c9216f0 100644 --- a/chrome/browser/resources/menu.html +++ b/chrome/browser/resources/menu.html @@ -1,14 +1,16 @@ <!doctype html> <html> <head> - <meta charset="utf-8"/> - <link rel="stylesheet" href="menu.css"/> - <script src="menu.js"></script> + <meta charset="utf-8"> + <link rel="stylesheet" href="menu.css"> + <script src="menu.js"></script> </head> <body> - <div id="menu"> </div> - <script> - setMenu(new Menu()); - </script> + <div id="scroll-up" class="scroll-button"></div> + <div id="viewport"> </div> + <div id="scroll-down" class="scroll-button"></div> + <script> + setMenu(new Menu()); + </script> </body> </html> |