From 98f12544de8120a566d99f5d857c86d8b5c944df Mon Sep 17 00:00:00 2001 From: David Huynh Date: Sat, 17 Apr 2010 06:40:42 +0000 Subject: [PATCH] Quick fix to prevent jittering in facet panel. git-svn-id: http://google-refine.googlecode.com/svn/trunk@494 7d457c2a-affb-35e4-300a-418c747d4874 --- src/main/webapp/scripts/project/browsing-engine.js | 4 ++-- src/main/webapp/styles/project/browsing.css | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/main/webapp/scripts/project/browsing-engine.js b/src/main/webapp/scripts/project/browsing-engine.js index 566dd08da..8ec40b5bf 100644 --- a/src/main/webapp/scripts/project/browsing-engine.js +++ b/src/main/webapp/scripts/project/browsing-engine.js @@ -164,8 +164,8 @@ BrowsingEngine.prototype.removeFacet = function(facet) { BrowsingEngine.prototype.update = function(onDone) { var self = this; - this._elmts.controls.hide(); this._elmts.indicator.show(); + this._elmts.controls.hide(); $.post( "/command/compute-facets?" + $.param({ project: theProject.id }), @@ -179,8 +179,8 @@ BrowsingEngine.prototype.update = function(onDone) { self._elmts.indicator.hide(); if (self._facets.length > 0) { - self._elmts.help.hide(); self._elmts.controls.show(); + self._elmts.help.hide(); } else { self._elmts.help.show(); } diff --git a/src/main/webapp/styles/project/browsing.css b/src/main/webapp/styles/project/browsing.css index 2b13d8052..8f9ddc86b 100644 --- a/src/main/webapp/styles/project/browsing.css +++ b/src/main/webapp/styles/project/browsing.css @@ -1,12 +1,19 @@ .browsing-panel-header { height: 5em; + position: relative; } .browsing-panel-indicator { display: none; + position: absolute; + width: 100%; + top: 0px; } .browsing-panel-controls { display: none; + position: absolute; + width: 100%; + top: 0px; } .browsing-panel-help { padding: 10px;