Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit 250745a

Browse files
committed
Merge pull request #7743 from adobe/tom/issue-7396
Alternative fix for Replace ModalBar with 2 lines
2 parents 6dc1b4a + 192ad14 commit 250745a

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

src/styles/brackets.less

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,14 +1077,10 @@ a, img {
10771077
}
10781078

10791079
&.offscreen {
1080-
-webkit-transform: translate(0, -44px);
1081-
transform: translate(0, -44px);
1080+
-webkit-transform: translate(0, -100%);
1081+
transform: translate(0, -100%);
10821082
transition: -webkit-transform 266ms cubic-bezier(0, 0.56, 0, 1);
10831083
transition: transform 266ms cubic-bezier(0, 0.56, 0, 1);
1084-
1085-
body:not(.has-appshell-menus) & {
1086-
top: 37px;
1087-
}
10881084
}
10891085

10901086
input {

src/widgets/ModalBar.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,13 @@ define(function (require, exports, module) {
153153

154154
this._$root.addClass("popout");
155155

156+
// Since the modal bar has now an absolute position relative to the editor holder,
157+
// when there are html menus we need to adjust the top position
158+
if (!brackets.nativeMenus) {
159+
var top = $("#titlebar").outerHeight();
160+
this._$root.css("top", top + "px");
161+
}
162+
156163
// Preserve scroll position of the current full editor across the editor refresh, adjusting for the
157164
// height of the modal bar so the code doesn't appear to shift if possible.
158165
var fullEditor = EditorManager.getCurrentFullEditor(),

0 commit comments

Comments
 (0)