fixed PlayBtn Position on startup
* fixed playBtn has a wrong Position on startup
This commit is contained in:
parent
f6778a320f
commit
8d759a724b
Binary file not shown.
|
@ -1126,9 +1126,16 @@ public class MainWindowController {
|
||||||
}
|
}
|
||||||
|
|
||||||
void refreshplayBtnPosition() {
|
void refreshplayBtnPosition() {
|
||||||
playBtn.setLayoutX((main.pane.getWidth()/2)-50);
|
double width;
|
||||||
totalPlaytimeBtn.setLayoutX((main.pane.getWidth()/2)-50-20.5-100);
|
|
||||||
lastTimePlayedBtn.setLayoutX((main.pane.getWidth()/2)+50+20.5);
|
if (mainAnchorPane.getWidth() < 10) {
|
||||||
|
width = mainAnchorPane.getPrefWidth();
|
||||||
|
} else {
|
||||||
|
width = mainAnchorPane.getWidth();
|
||||||
|
}
|
||||||
|
playBtn.setLayoutX((width/2)-50);
|
||||||
|
totalPlaytimeBtn.setLayoutX((width/2)-50-20.5-100);
|
||||||
|
lastTimePlayedBtn.setLayoutX((width/2)+50+20.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void addCourseDescription(SmmdbApiDataType course) {
|
private void addCourseDescription(SmmdbApiDataType course) {
|
||||||
|
|
Loading…
Reference in New Issue