mirror of
https://github.com/igniterealtime/Spark.git
synced 2025-12-01 12:27:58 +00:00
Update layout settings.
git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@9074 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
@ -133,11 +133,11 @@ public class LayoutSettingsManager {
|
||||
int mainWindowHeightInt = Integer.parseInt(mainWindowHeight);
|
||||
int mainWindowWidthInt = Integer.parseInt(mainWindowWidth);
|
||||
|
||||
if (mainWindowXInt + mainWindowWidthInt > width) {
|
||||
if (mainWindowXInt + mainWindowWidthInt > width || mainWindowXInt < 0) {
|
||||
mainWindowXInt = (width - mainWindowWidthInt) / 2;
|
||||
}
|
||||
|
||||
if (mainWindowYInt + mainWindowHeightInt > height) {
|
||||
if (mainWindowYInt + mainWindowHeightInt > height || mainWindowYInt < 0) {
|
||||
mainWindowYInt = (height - mainWindowHeightInt) / 2;
|
||||
}
|
||||
|
||||
@ -156,6 +156,10 @@ public class LayoutSettingsManager {
|
||||
chatFrameYInt = (height - chatFrameHeightInt) / 2;
|
||||
}
|
||||
|
||||
if(chatFrameHeightInt < 100){
|
||||
chatFrameHeightInt = 100;
|
||||
}
|
||||
|
||||
|
||||
settings.setMainWindowX(mainWindowXInt);
|
||||
settings.setMainWindowY(mainWindowYInt);
|
||||
|
||||
Reference in New Issue
Block a user