[hg] galaxy 3486: Handle dialog box overflow gracefully by scrol...
details: http://www.bx.psu.edu/hg/galaxy/rev/1cd52787c0bb changeset: 3486:1cd52787c0bb user: jeremy goecks <jeremy.goecks@emory.edu> date: Fri Mar 05 09:09:26 2010 -0500 description: Handle dialog box overflow gracefully by scrolling body; this fix makes it possible to place item selection grids in dialog boxes without poor overflow. Also fixed msg when displaying an empty history. diffstat: static/june_2007_style/blue/panel_layout.css | 3 ++- static/june_2007_style/panel_layout.css.tmpl | 8 +++++++- templates/base_panels.mako | 2 +- templates/history/display.mako | 2 +- 4 files changed, 11 insertions(+), 4 deletions(-) diffs (56 lines): diff -r ef90fbe0eda1 -r 1cd52787c0bb static/june_2007_style/blue/panel_layout.css --- a/static/june_2007_style/blue/panel_layout.css Thu Mar 04 18:33:11 2010 -0500 +++ b/static/june_2007_style/blue/panel_layout.css Fri Mar 05 09:09:26 2010 -0500 @@ -27,7 +27,8 @@ .dialog-box-container{position:relative;margin-top:80px;margin-right:auto;margin-left:auto;} .dialog-box-wrapper{position:relative;padding:1em;background-color:rgba(0,0,0,0.5);-moz-border-radius:1em;-webkit-border-radius:1em;} .dialog-box{border:solid #999 1px;background:white;z-index:80000;} -.dialog-box .body,.dialog-box .buttons{padding:5px;} +.dialog-box .body{padding:5px;overflow:auto;max-height:500px;} +.dialog-box .buttons{padding:5px;} .panel-error-message,.panel-warning-message,.panel-done-message,.panel-info-message{height:24px;line-height:24px;color:#303030;padding:0px;padding-left:26px;background-color:#FFCCCC;background-image:url(error_small.png);background-repeat:no-repeat;background-position:6px 50%;} .panel-warning-message{background-image:url(warn_small.png);background-color:#FFFFCC;} .panel-done-message{background-image:url(done_small.png);background-color:#CCFFCC;} diff -r ef90fbe0eda1 -r 1cd52787c0bb static/june_2007_style/panel_layout.css.tmpl --- a/static/june_2007_style/panel_layout.css.tmpl Thu Mar 04 18:33:11 2010 -0500 +++ b/static/june_2007_style/panel_layout.css.tmpl Fri Mar 05 09:09:26 2010 -0500 @@ -190,7 +190,13 @@ z-index: 80000; } -.dialog-box .body, .dialog-box .buttons { +.dialog-box .body { + padding: 5px; + overflow: auto; + max-height: 500px; +} + +.dialog-box .buttons { padding: 5px; } diff -r ef90fbe0eda1 -r 1cd52787c0bb templates/base_panels.mako --- a/templates/base_panels.mako Thu Mar 04 18:33:11 2010 -0500 +++ b/templates/base_panels.mako Fri Mar 05 09:09:26 2010 -0500 @@ -314,7 +314,7 @@ <div class="unified-panel-header"> <div class="unified-panel-header-inner"><span class='title'>${title}</span></div> </div> - <div class="body" style="max-height: 600px;">${content}</div> + <div class="body">${content}</div> <div> <div class="buttons" style="display: none; float: right;"></div> <div class="extra_buttons" style="display: none; padding: 5px;"></div> diff -r ef90fbe0eda1 -r 1cd52787c0bb templates/history/display.mako --- a/templates/history/display.mako Thu Mar 04 18:33:11 2010 -0500 +++ b/templates/history/display.mako Fri Mar 05 09:09:26 2010 -0500 @@ -277,7 +277,7 @@ </table> <div class="infomessagesmall" id="emptyHistoryMessage" style="display:none;"> %endif - ${_("Your history is empty. Click 'Get Data' on the left pane to start")} + ${_("This history is empty.")} </div> </%def> \ No newline at end of file
participants (1)
-
Greg Von Kuster