mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-79086 - Throwable: DebugUtil.currentStackTrace
make sure horizontal width available for text layout is consistently calculated in all places
This commit is contained in:
@@ -223,8 +223,7 @@ public class SoftWrapModelImpl implements SoftWrapModelEx, PrioritizedInternalDo
|
||||
}
|
||||
}
|
||||
|
||||
Rectangle visibleArea = myEditor.getScrollingModel().getVisibleArea();
|
||||
return visibleArea.width > 0 && visibleArea.height > 0;
|
||||
return !myApplianceManager.getAvailableArea().isEmpty();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
+5
@@ -1013,6 +1013,11 @@ public class SoftWrapApplianceManager implements Dumpable {
|
||||
myPainter = painter;
|
||||
}
|
||||
|
||||
public Rectangle getAvailableArea() {
|
||||
Rectangle visibleArea = myEditor.getScrollingModel().getVisibleArea();
|
||||
return new Rectangle(myWidthProvider.getVisibleAreaWidth(), visibleArea.height);
|
||||
}
|
||||
|
||||
/**
|
||||
* We need to use correct indent for soft-wrapped lines, i.e. they should be indented to the start of the logical line.
|
||||
* This class stores information about logical line start indent.
|
||||
|
||||
Reference in New Issue
Block a user