diff --git a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/SecurityDetailsViewer.java b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/SecurityDetailsViewer.java index f1bf3ec439..ad37a3c9d5 100644 --- a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/SecurityDetailsViewer.java +++ b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/SecurityDetailsViewer.java @@ -419,6 +419,12 @@ public void controlResized(ControlEvent e) container.setMinSize(container1.computeSize(SWT.DEFAULT, SWT.DEFAULT)); } }); + + // After adding all children, explicitly calculate size and layout + // ScrolledComposite's content container. This is again to avoid + // artifact when scrollbar covers this container's right edge. + container1.setSize(container1.computeSize(SWT.DEFAULT, SWT.DEFAULT, true)); + container1.layout(); } public Control getControl()