mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
Fix weird behavior in image view with certain filters
This commit is contained in:
@@ -1003,6 +1003,8 @@ public abstract class ItemManager<T extends InventoryItem> extends FContainer im
|
||||
private class ContextMenu extends FDropDownMenu {
|
||||
@Override
|
||||
protected void buildMenu() {
|
||||
if (getSelectedItem() == null)
|
||||
return;
|
||||
contextMenuBuilder.buildMenu(this, getSelectedItem());
|
||||
}
|
||||
|
||||
|
||||
@@ -601,7 +601,7 @@ public class ImageView<T extends InventoryItem> extends ItemView<T> {
|
||||
|
||||
for (int i = groups.get().size() - 1; i >= 0; i--) {
|
||||
Group group = groups.get().get(i);
|
||||
if (!group.isCollapsed) {
|
||||
if (!group.isCollapsed && !group.items.isEmpty()) {
|
||||
for (int j = group.piles.size() - 1; j >= 0; j--) {
|
||||
float relX = x + group.getScrollLeft() - group.getLeft();
|
||||
float relY = y + getScrollValue();
|
||||
|
||||
Reference in New Issue
Block a user