mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 04:52:07 -08:00
* Fixed a problem that prevented cards from beeing marked as choosable in select card panel after the changes made for displaying resized counters.
This commit is contained in:
parent
e5e1a5db40
commit
1396760d5e
2 changed files with 5 additions and 2 deletions
|
|
@ -1163,7 +1163,10 @@ public class CardPanel extends MagePermanent implements MouseListener, MouseMoti
|
|||
@Override
|
||||
public void componentResized(ComponentEvent ce) {
|
||||
doLayout();
|
||||
if (updateCard != null) {
|
||||
// this update removes the isChoosable mark from targetCardsInLibrary
|
||||
// so only done for permanents because it's needed to redraw counters in different size, if window size was changed
|
||||
// no perfect solution yet (maybe also other not wanted effects for PermanentView objects)
|
||||
if (updateCard != null && (updateCard instanceof PermanentView)) {
|
||||
update(updateCard);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue