diff --git a/forge-gui-mobile/src/forge/screens/match/MatchScreen.java b/forge-gui-mobile/src/forge/screens/match/MatchScreen.java index a4228ad8f0c..f1daa790dce 100644 --- a/forge-gui-mobile/src/forge/screens/match/MatchScreen.java +++ b/forge-gui-mobile/src/forge/screens/match/MatchScreen.java @@ -255,15 +255,6 @@ public class MatchScreen extends FScreen { float yAfter = y * ratio; setScrollTop(oldScrollTop + yAfter - y); - //make scroll panes wide enough to support scrolling cards into view - zoom = newScrollHeight / (getHeight() - staticHeight); - for (FScrollPane scrollPane : horzScrollPanes.keySet()) { - float minScrollWidth = scrollPane.getWidth() * zoom; - if (scrollPane.getScrollWidth() < minScrollWidth) { - scrollPane.setScrollWidth(minScrollWidth); - } - } - //adjust scroll left of all horizontal scroll panes to keep x position the same float startX = x; for (Entry> entry : horzScrollPanes.entrySet()) { diff --git a/forge-gui-mobile/src/forge/toolbox/FScrollPane.java b/forge-gui-mobile/src/forge/toolbox/FScrollPane.java index 46213af1341..47983374705 100644 --- a/forge-gui-mobile/src/forge/toolbox/FScrollPane.java +++ b/forge-gui-mobile/src/forge/toolbox/FScrollPane.java @@ -40,18 +40,10 @@ public abstract class FScrollPane extends FContainer { return scrollBounds.width; } - public void setScrollWidth(float scrollWidth0) { - scrollBounds.width = scrollWidth0; - } - public float getScrollHeight() { return scrollBounds.height; } - public void setScrollHeight(float scrollHeight0) { - scrollBounds.height = scrollHeight0; - } - public float getMaxScrollLeft() { return getScrollWidth() - getWidth(); }