|
|
@ -473,7 +473,7 @@ public class BorderLineAndImagePane extends JPanel implements UIObserver { |
|
|
|
int autoFixAreaX = PADDING; |
|
|
|
int autoFixAreaX = PADDING; |
|
|
|
int autoFixAreaY = PADDING; |
|
|
|
int autoFixAreaY = PADDING; |
|
|
|
|
|
|
|
|
|
|
|
if (imgWidth / imgHeight > autoFixAreaWidth / autoFixAreaHeight) { |
|
|
|
if ((imgWidth * 1.0F / imgHeight) > (autoFixAreaWidth * 1.0F / autoFixAreaHeight)) { |
|
|
|
scaleImgWidth = autoFixAreaWidth; |
|
|
|
scaleImgWidth = autoFixAreaWidth; |
|
|
|
scaleImgHeight = (int) (1.0F * scaleImgWidth * imgHeight / imgWidth); |
|
|
|
scaleImgHeight = (int) (1.0F * scaleImgWidth * imgHeight / imgWidth); |
|
|
|
scaleImgX = autoFixAreaX; |
|
|
|
scaleImgX = autoFixAreaX; |
|
|
|