fixed generating position
* ROM covers are placed now correctly on resize action
This commit is contained in:
		| @ -21,9 +21,9 @@ | ||||
| 	<classpathentry kind="lib" path="src/libraries/commons-vfs2-2.1.1744488.2.jar"/> | ||||
| 	<classpathentry kind="lib" path="src/libraries/flow-8.0.1.jar"/> | ||||
| 	<classpathentry kind="lib" path="src/libraries/zip4j-1.3.2.jar"/> | ||||
| 	<classpathentry kind="lib" path="src/libraries/jfoenix-1.8.0.jar"/> | ||||
| 	<classpathentry kind="lib" path="src/libraries/log4j-api-2.8.2.jar"/> | ||||
| 	<classpathentry kind="lib" path="src/libraries/log4j-core-2.8.2.jar"/> | ||||
| 	<classpathentry kind="lib" path="src/libraries/jfoenix-1.8.0.jar"/> | ||||
| 	<classpathentry kind="lib" path="src/libraries/sqlite-jdbc-3.20.0.jar"/> | ||||
| 	<classpathentry kind="output" path="bin"/> | ||||
| </classpath> | ||||
|  | ||||
										
											Binary file not shown.
										
									
								
							| @ -1202,9 +1202,9 @@ public class MainWindowController { | ||||
|     private void generatePosition() { | ||||
|     	int xPosHelperMax; | ||||
|     	if(System.getProperty("os.name").equals("Linux")){ | ||||
|     		xPosHelperMax = (int) Math.floor((main.pane.getPrefWidth() - 36) / 217); | ||||
|     		xPosHelperMax = (int) Math.floor((mainAnchorPane.getWidth() - 36) / 217); | ||||
|     	} else { | ||||
|     		xPosHelperMax = (int) Math.floor((main.pane.getPrefWidth() - 24) / 217); | ||||
|     		xPosHelperMax = (int) Math.floor((mainAnchorPane.getWidth() - 24) / 217); | ||||
|     	} | ||||
|     	if(xPosHelper == xPosHelperMax){ | ||||
|     		xPos = 17; | ||||
| @ -1214,7 +1214,7 @@ public class MainWindowController { | ||||
|     		xPos = xPos + 217; | ||||
|     		xPosHelper++; | ||||
|     	} | ||||
| //    	System.out.println("Breit: " + main.pane.getPrefWidth()); | ||||
| //    	System.out.println("Breit: " + mainAnchorPane.getWidth()); | ||||
| //    	System.out.println("xPosHelper: " + xPosHelper); | ||||
| //    	System.out.println("yPos: " + yPos); | ||||
| //    	System.out.println("xPos: " + xPos); | ||||
|  | ||||
		Reference in New Issue
	
	Block a user