@ -64,21 +64,18 @@ public class FRCardMainBorderLayoutAdapter extends FRBorderLayoutAdapter {
private boolean isBeyondMinConstraint ( int minConstraint , int value ) {
private boolean isBeyondMinConstraint ( int minConstraint , int value ) {
if ( minConstraint > value ) {
if ( minConstraint > value ) {
FineJOptionPane . showMessageDialog ( null , com . fr . design . i18n . Toolkit . i18nText ( "Fine-Design_Form_Beyond_Tablayout_Bounds" ) ) ;
FineJOptionPane . showMessageDialog ( null , com . fr . design . i18n . Toolkit . i18nText ( "Fine-Design_Form_Beyond_Tablayout_Bounds" ) ) ;
if ( container . getBackupBound ( ) ! = null ) {
JTemplate < ? , ? > jt = HistoryTemplateListPane . getInstance ( ) . getCurrentEditingTemplate ( ) ;
// 手动拖动导致变矮的场景
if ( jt ! = null & & jt . getUndoManager ( ) . canUndo ( ) ) {
container . setSize ( container . getBackupBound ( ) . getSize ( ) ) ;
// 自适应布局平分高度导致变矮的场景,优先做撤销
} else {
// 自适应布局平分高度导致变矮的场景
UIUtil . invokeLaterIfNeeded ( new Runnable ( ) {
UIUtil . invokeLaterIfNeeded ( new Runnable ( ) {
@Override
@Override
public void run ( ) {
public void run ( ) {
JTemplate < ? , ? > jt = HistoryTemplateListPane . getInstance ( ) . getCurrentEditingTemplate ( ) ;
if ( jt ! = null ) {
jt . undo ( ) ;
jt . undo ( ) ;
}
}
}
} ) ;
} ) ;
} else if ( container . getBackupBound ( ) ! = null ) {
// 手动拖动导致变矮的场景
container . setSize ( container . getBackupBound ( ) . getSize ( ) ) ;
}
}
return true ;
return true ;
} else {
} else {