mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(devtools): use visible gutter size in calculation for split area flex basis' (rangle/angular-devtools#857)
After PR rangle/angular-devtools#618, an invisible gutter was introduced to increase the draggable area of the split pane gutter. The gutter size being used in the calculation for the split area flex-basis still referenced the size of the now invisible gutter, causing split areas to be smaller than they should be. This is most noticable in the the input/output/state expandable panels in the property explorer tab. Now the visible gutter size is used in the flex-basis calculation instead of the invisible one.
This commit is contained in:
committed by
GitHub
parent
2f51b8f6f9
commit
c3e8311298
+4
-1
@@ -448,7 +448,10 @@ export class SplitComponent implements AfterViewInit, OnDestroy {
|
||||
}
|
||||
// Multiple areas > use each percent basis
|
||||
else {
|
||||
const sumGutterSize = this.getNbGutters() * this.gutterSize!;
|
||||
// Size in pixels
|
||||
const visibleGutterSize = 1;
|
||||
// Use visible gutter size in calculation instead of the invisible draggable gutter
|
||||
const sumGutterSize = this.getNbGutters() * visibleGutterSize;
|
||||
|
||||
this.displayedAreas.forEach((area) => {
|
||||
area.component.setStyleFlex(
|
||||
|
||||
Reference in New Issue
Block a user