Merge lp:~tapaal-contributor/tapaal/update-scrollbar-1938778 into lp:tapaal

Proposed by Lena Ernstsen
Status: Merged
Approved by: Jiri Srba
Approved revision: 1132
Merged at revision: 1134
Proposed branch: lp:~tapaal-contributor/tapaal/update-scrollbar-1938778
Merge into: lp:tapaal
Diff against target: 25 lines (+2/-3)
2 files modified
src/dk/aau/cs/gui/TabContent.java (+0/-2)
src/pipe/gui/canvas/DrawingSurfaceImpl.java (+2/-1)
To merge this branch: bzr merge lp:~tapaal-contributor/tapaal/update-scrollbar-1938778
Reviewer Review Type Date Requested Status
Jiri Srba Approve
Review via email: mp+406715@code.launchpad.net

Commit message

Scrollbar will update when deleting objects

Description of the change

When deleting an object the scrollbar of the drawing surface will be updated.

Also updates when deleting orphan places/transitions through statistics panel.

To post a comment you must log in.
Revision history for this message
Jiri Srba (srba) wrote :

Tested and works.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/dk/aau/cs/gui/TabContent.java'
2--- src/dk/aau/cs/gui/TabContent.java 2021-07-27 12:51:40 +0000
3+++ src/dk/aau/cs/gui/TabContent.java 2021-08-05 12:58:15 +0000
4@@ -2039,8 +2039,6 @@
5 @Override
6 public void deleteSelection() {
7 guiModelManager.deleteSelection();
8-
9-
10 }
11
12 @Override
13
14=== modified file 'src/pipe/gui/canvas/DrawingSurfaceImpl.java'
15--- src/pipe/gui/canvas/DrawingSurfaceImpl.java 2021-08-03 08:40:46 +0000
16+++ src/pipe/gui/canvas/DrawingSurfaceImpl.java 2021-08-05 12:58:15 +0000
17@@ -123,7 +123,8 @@
18 pno.setManagerRef(null);
19 super.remove(pno); //Must be called after removeFromGui as children might use the references to Drawingsurface
20
21- validate();
22+ updatePreferredSize();
23+ validate();
24 repaint();
25 }
26

Subscribers

People subscribed via source and target branches