Skip to content

Commit a989717

Browse files
author
Chris K
committed
DFL-3418 Main toolbar buttons don't resize when changing width in one step
1 parent b302d5c commit a989717

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ui-scripts/tabs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ var TabsBase = function()
378378
{
379379
return sum + tab.orig_width;
380380
}, 0);
381-
scale = (orig_width_sum - delta) / orig_width_sum;
381+
scale = Math.max(orig_width_sum - delta, 0) / orig_width_sum;
382382
}
383383
}
384384

src/ui-style/tabs.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ top-tabs .badge:empty
237237

238238
.profiler_mode
239239
{
240-
background: url("../ui-images/mode_profiler.png");
240+
background-image: url("../ui-images/mode_profiler.png");
241241
width: 25px;
242242
}
243243

0 commit comments

Comments
 (0)