Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed criteria pane visibility issue

  • Loading branch information...
commit 00c12530f8a9a43d1a22a79756735ab67e8b6c78 1 parent 7abbdcb
tomek authored
View
22 src/main/frontend/source/class/helenos/components/tab/browse/AbstractBrowsePage.js
@@ -23,17 +23,17 @@ qx.Class.define("helenos.components.tab.browse.AbstractBrowsePage",
this._cfDef = helenos.util.RpcActionsProvider.describeColumnFamily(this._ksName, this._cfName);
this.set({
- layout : new qx.ui.layout.VBox(8, 'top'),
+ layout : new qx.ui.layout.Grow(),
label: (ksName + ' : ' + cfName)
});
this._resultView = new qx.ui.container.Composite(new qx.ui.layout.VBox(8));
- this._rajCB = new qx.ui.form.CheckBox('Parse results to JSON');
+ //this._rajCB = new qx.ui.form.CheckBox('Parse results to JSON');
var pane = new qx.ui.splitpane.Pane("horizontal");
pane.add(this._getCriteriaPane(),0);
pane.add(this._resultView, 1);
- this.add(pane, {flex:1});
+ this.add(pane);
},
members : {
@@ -44,27 +44,21 @@ qx.Class.define("helenos.components.tab.browse.AbstractBrowsePage",
_resultView : null,
_manager : null,
- _rajCB : null,
-
- __getSearchActionPane : function() {
- var pane = new qx.ui.container.Composite(new qx.ui.layout.HBox(3, 'left'));
- pane.add(this._getSearchButton());
- //pane.add(this._rajCB);
-
- return pane;
- },
+ //_rajCB : null,
_getCriteriaPane : function() {
var components = this._getCriteriaComponents();
- var container = new qx.ui.container.Composite(new qx.ui.layout.VBox(5).set({alignX : 'left'}));
+ var container = new qx.ui.container.Composite(new qx.ui.layout.VBox(7).set({alignX : 'left'}));
container.setAppearance('criteria-pane');
+
for (var i = 0; i < components.length; i++) {
container.add(components[i]);
}
container.add(this._getSearchButton());
- var pane = new qx.ui.core.scroll.ScrollPane();
+ var pane = new qx.ui.container.Scroll();
+ pane.setWidth(180);
pane.add(container);
return pane;
},
View
2  src/main/frontend/source/class/helenos/ui/GroupBoxV.js
@@ -13,6 +13,6 @@ qx.Class.define('helenos.ui.GroupBoxV',
construct : function(label)
{
this.base(arguments, label);
- this.setLayout(new qx.ui.layout.VBox(5).set({alignX : 'left'}));
+ this.setLayout(new qx.ui.layout.VBox(7).set({alignX : 'left'}));
}
});
View
5 src/main/frontend/source/class/helenos/ui/treevirtual/ResultsTree.js
@@ -13,7 +13,7 @@ qx.Class.define("helenos.ui.treevirtual.ResultsTree",
construct : function(data)
{
this.base(arguments, ["Name", "Value", "Clock", "TTL"]);
- this.set({alwaysShowOpenCloseSymbol : true, useTreeLines : true});
+ this.set({alwaysShowOpenCloseSymbol : true, useTreeLines : true, statusBarVisible : false});
var resizeBehavior = this.getTableColumnModel().getBehavior();
resizeBehavior.set(1, { width:"1*", minWidth:200 });
@@ -53,6 +53,9 @@ qx.Class.define("helenos.ui.treevirtual.ResultsTree",
},
setData : function(data) {
+ if (data == null) {
+ return
+ }
var dataModel = this.getDataModel();
var i;
Please sign in to comment.
Something went wrong with that request. Please try again.