Skip to content

Commit 3ea5fc4

Browse files
author
Luke Pacholski
authored
Merge pull request #581 from dsych/cachedLayout
Issue adobe#1154@thimble.mozilla.org
2 parents 7ab8bae + e98dbe2 commit 3ea5fc4

File tree

1 file changed

+8
-1
lines changed
  • src/extensions/default/bramble/lib

1 file changed

+8
-1
lines changed

src/extensions/default/bramble/lib/UI.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,18 @@ define(function (require, exports, module) {
108108
}
109109
}
110110

111+
var secondPaneWidth = BrambleStartupState.ui("secondPaneWidth");
111112
var firstPaneWidth = BrambleStartupState.ui("firstPaneWidth");
113+
114+
firstPaneWidth = firstPaneWidth * 100 / (
115+
((firstPaneWidth)? firstPaneWidth : 0) +
116+
((secondPaneWidth)? secondPaneWidth : 0)); // calculate width in %
117+
112118
if(firstPaneWidth) {
113-
$("#first-pane").width(firstPaneWidth);
119+
$("#first-pane").width((firstPaneWidth + "%"));
114120
}
115121

122+
116123
var fontSize = BrambleStartupState.ui("fontSize");
117124
if(fontSize && /\d+px/.test(fontSize)) {
118125
ViewCommandHandlers.setFontSize(fontSize);

0 commit comments

Comments
 (0)