Fix the underlying problem -- Bad X!

This commit is contained in:
Jason Mitchell committed 2020-02-04 20:11:17 -08:00
1 parent 4375a91220
commit 10c2326184
4 files changed
+11 -14

No files matched your search

+5 -1
View File
@@ -129,6 +129,10 @@ public class BookmarkPanel extends ItemPanel {
return false;
}
@Override
public int getX(GuiContainer gui) {
return 5;
}
@Override
public int getMarginLeft() {
@@ -162,7 +166,7 @@ public class BookmarkPanel extends ItemPanel {
}
public int getWidth(GuiContainer gui) {
return LayoutManager.getLeftSize(gui) - x;
return LayoutManager.getLeftSize(gui) - ( (gui.xSize + gui.width) / 2 + 3 );
}