hide toolBar when hiding statusBar
This commit is contained in:
parent
a99351aae6
commit
5ac89601d6
@ -2746,6 +2746,7 @@ control.prototype.showStatusBar = function () {
|
|||||||
statusItems[i].style.opacity = 1;
|
statusItems[i].style.opacity = 1;
|
||||||
this.setToolbarButton(false);
|
this.setToolbarButton(false);
|
||||||
core.dom.tools.hard.style.display = 'block';
|
core.dom.tools.hard.style.display = 'block';
|
||||||
|
core.dom.toolBar.style.display = 'block';
|
||||||
}
|
}
|
||||||
|
|
||||||
control.prototype.hideStatusBar = function (showToolbox) {
|
control.prototype.hideStatusBar = function (showToolbox) {
|
||||||
@ -2767,6 +2768,9 @@ control.prototype.hideStatusBar = function (showToolbox) {
|
|||||||
for (var i = 0; i < toolItems.length; ++i)
|
for (var i = 0; i < toolItems.length; ++i)
|
||||||
toolItems[i].style.display = 'none';
|
toolItems[i].style.display = 'none';
|
||||||
}
|
}
|
||||||
|
if (!core.domStyle.isVertical) {
|
||||||
|
core.dom.toolBar.style.display = 'none';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
////// 更新状态栏的勇士图标 //////
|
////// 更新状态栏的勇士图标 //////
|
||||||
@ -3099,10 +3103,15 @@ control.prototype._resize_toolBar = function (obj) {
|
|||||||
toolBar.style.height = 0.281 * obj.outerSize + "px";
|
toolBar.style.height = 0.281 * obj.outerSize + "px";
|
||||||
toolBar.style.background = 'transparent';
|
toolBar.style.background = 'transparent';
|
||||||
}
|
}
|
||||||
toolBar.style.display = 'block';
|
|
||||||
toolBar.style.borderLeft = obj.border;
|
toolBar.style.borderLeft = obj.border;
|
||||||
toolBar.style.borderRight = toolBar.style.borderBottom = core.domStyle.isVertical ? obj.border : '';
|
toolBar.style.borderRight = toolBar.style.borderBottom = core.domStyle.isVertical ? obj.border : '';
|
||||||
toolBar.style.fontSize = 16 * core.domStyle.scale + "px";
|
toolBar.style.fontSize = 16 * core.domStyle.scale + "px";
|
||||||
|
|
||||||
|
if (!core.domStyle.showStatusBar && !core.domStyle.isVertical) {
|
||||||
|
toolBar.style.display = 'none';
|
||||||
|
} else {
|
||||||
|
toolBar.style.display = 'block';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
control.prototype._resize_tools = function (obj) {
|
control.prototype._resize_tools = function (obj) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user