@ -13,6 +13,7 @@ import com.fr.design.dialog.DialogActionAdapter;
import com.fr.design.mainframe.ElementCasePane ;
import com.fr.design.mainframe.ElementCasePane ;
import com.fr.design.fun.ReportLengthUNITProvider ;
import com.fr.design.fun.ReportLengthUNITProvider ;
import com.fr.design.unit.UnitConvertUtil ;
import com.fr.design.unit.UnitConvertUtil ;
import com.fr.general.ComparatorUtils ;
import com.fr.grid.selection.CellSelection ;
import com.fr.grid.selection.CellSelection ;
import com.fr.report.elementcase.ElementCase ;
import com.fr.report.elementcase.ElementCase ;
import com.fr.stable.ArrayUtils ;
import com.fr.stable.ArrayUtils ;
@ -39,8 +40,8 @@ public abstract class ColumnRowSizingAction extends AbstractColumnRowIndexAction
return ColumnRowSizingAction . this . title4UnitInputPane ( ) ;
return ColumnRowSizingAction . this . title4UnitInputPane ( ) ;
}
}
} ;
} ;
UNIT len = getShowLen ( report , cs ) ;
final UNIT o ldL en = getShowLen ( report , cs ) ;
populateNumberDialog ( uPane , len ) ;
populateNumberDialog ( uPane , o ldL en) ;
final CellSelection finalCS = cs ;
final CellSelection finalCS = cs ;
uPane . showSmallWindow ( DesignerContext . getDesignerFrame ( ) , new DialogActionAdapter ( ) {
uPane . showSmallWindow ( DesignerContext . getDesignerFrame ( ) , new DialogActionAdapter ( ) {
@ -51,8 +52,10 @@ public abstract class ColumnRowSizingAction extends AbstractColumnRowIndexAction
float newHeight = ( float ) uPane . update ( ) ;
float newHeight = ( float ) uPane . update ( ) ;
int unitType = DesignerEnvManager . getEnvManager ( ) . getReportLengthUnit ( ) ;
int unitType = DesignerEnvManager . getEnvManager ( ) . getReportLengthUnit ( ) ;
ReportLengthUNITProvider lengthUNIT = UnitConvertUtil . parseLengthUNIT ( unitType ) ;
ReportLengthUNITProvider lengthUNIT = UnitConvertUtil . parseLengthUNIT ( unitType ) ;
UNIT len = lengthUNIT . float2UNIT ( newHeight ) ;
UNIT newLen = lengthUNIT . float2UNIT ( newHeight ) ;
updateAction ( report , len , finalCS ) ;
if ( ! ComparatorUtils . equals ( oldLen , newLen ) ) {
updateAction ( report , newLen , finalCS ) ;
}
} catch ( ValueNotChangeException e ) {
} catch ( ValueNotChangeException e ) {
// nothing
// nothing
}
}