|
@@ -91,10 +91,10 @@ public class CardFile {
|
|
|
|
|
|
public String getMarkConfigAdd(List<MarkConfig.ConfigItem> list, double position) {
|
|
|
for (MarkConfig.ConfigItem configItem : list) {
|
|
|
- configItem.left = configItem.left + position;
|
|
|
- configItem.top = configItem.top + position;
|
|
|
- configItem.width = configItem.width + position;
|
|
|
- configItem.height = configItem.height + position;
|
|
|
+ configItem.left = configItem.left < position ? configItem.left : configItem.left - position;
|
|
|
+ configItem.top = configItem.top < position ? configItem.top : configItem.top - position;
|
|
|
+ configItem.width = configItem.width + position * 2;
|
|
|
+ configItem.height = configItem.height + position * 2;
|
|
|
}
|
|
|
return StringUtils.join(list, MarkConfigItem.DB_ITEM_JOINER);
|
|
|
}
|