|
@@ -44,7 +44,6 @@ public class Controller {
|
|
|
|
|
|
public void loadPosters()
|
|
|
{
|
|
|
-
|
|
|
my_movie = new Movie();
|
|
|
my_movie.setName("Back to the Future");
|
|
|
my_movie.setDuration("1:20");
|
|
@@ -74,8 +73,10 @@ public class Controller {
|
|
|
//fill grid by movies
|
|
|
moviesGrid.addRow(0, movies[0], movies[1]);
|
|
|
moviesGrid.addRow(1,movies[4],movies[5]);
|
|
|
+ moviesGrid.addRow(2, movies[6],movies[7]);
|
|
|
+ //moviesGrid.minHeight(moviesGrid.getMinHeight() + 222);
|
|
|
moviesGrid.setPrefWidth(browserPane.getWidth()-26);
|
|
|
- moviesGrid.setPrefHeight(browserPane.getHeight()-50);
|
|
|
+ moviesGrid.setPrefHeight(moviesGrid.getHeight()+222);
|
|
|
|
|
|
|
|
|
}
|
|
@@ -127,10 +128,10 @@ public class Controller {
|
|
|
//movie.
|
|
|
detailsPicPane.getChildren().add(detailsImage);
|
|
|
// 300px is details window width
|
|
|
- scrollPane.setMaxWidth(browserPane.getWidth()-300);
|
|
|
- scrollPane.setMaxHeight(browserPane.getHeight());
|
|
|
- moviesGrid.setMaxWidth(browserPane.getWidth() -300);
|
|
|
- moviesGrid.setMaxHeight(browserPane.getHeight());
|
|
|
+ scrollPane.setPrefWidth(browserPane.getWidth()-300);
|
|
|
+ scrollPane.setPrefHeight(browserPane.getHeight());
|
|
|
+ moviesGrid.setPrefWidth(browserPane.getWidth() -300);
|
|
|
+ moviesGrid.setPrefHeight(browserPane.getHeight());
|
|
|
//loadPosters();
|
|
|
|
|
|
}
|
|
@@ -141,10 +142,10 @@ public class Controller {
|
|
|
detailsPane.setPrefWidth(0);
|
|
|
detailsPane.setMaxWidth(0);
|
|
|
// 300px is details window width
|
|
|
- scrollPane.setMaxWidth(browserPane.getWidth()+300);
|
|
|
- scrollPane.setMaxHeight(browserPane.getHeight());
|
|
|
- moviesGrid.setMaxWidth(browserPane.getWidth()+300);
|
|
|
- moviesGrid.setMaxHeight(browserPane.getHeight());
|
|
|
+ scrollPane.setPrefWidth(browserPane.getWidth()+300);
|
|
|
+ scrollPane.setPrefHeight(browserPane.getHeight());
|
|
|
+ moviesGrid.setPrefWidth(browserPane.getWidth()+300);
|
|
|
+ moviesGrid.setPrefHeight(browserPane.getHeight());
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -165,10 +166,10 @@ public class Controller {
|
|
|
filterPane.setMaxWidth(300);
|
|
|
//loadPosters();
|
|
|
// 300px is filter window width
|
|
|
- scrollPane.setMaxWidth(browserPane.getWidth()-300);
|
|
|
- scrollPane.setMaxHeight(browserPane.getHeight());
|
|
|
- moviesGrid.setMaxWidth(browserPane.getWidth()-300);
|
|
|
- moviesGrid.setMaxHeight(browserPane.getHeight());
|
|
|
+ scrollPane.setPrefWidth(browserPane.getWidth()-300);
|
|
|
+ scrollPane.setPrefHeight(browserPane.getHeight());
|
|
|
+ moviesGrid.setPrefWidth(browserPane.getWidth() -300);
|
|
|
+ moviesGrid.setPrefHeight(browserPane.getHeight());
|
|
|
}
|
|
|
else
|
|
|
{
|
|
@@ -177,10 +178,10 @@ public class Controller {
|
|
|
filterPane.setMaxWidth(0);
|
|
|
//loadPosters();
|
|
|
// 300px is filter window width
|
|
|
- scrollPane.setMaxWidth(browserPane.getWidth()+300);
|
|
|
- scrollPane.setMaxHeight(browserPane.getHeight());
|
|
|
- moviesGrid.setMaxWidth(browserPane.getWidth()+300);
|
|
|
- moviesGrid.setMaxHeight(browserPane.getHeight());
|
|
|
+ scrollPane.setPrefWidth(browserPane.getWidth()+300);
|
|
|
+ scrollPane.setPrefHeight(browserPane.getHeight());
|
|
|
+ moviesGrid.setPrefWidth(browserPane.getWidth()+300);
|
|
|
+ moviesGrid.setPrefHeight(browserPane.getHeight());
|
|
|
}
|
|
|
}
|
|
|
|