22 lines
519 B
Java
22 lines
519 B
Java
|
package Classes.css.user;
|
||
|
|
||
|
import Classes.css.core.Context;
|
||
|
import Classes.css.core.Ruleset;
|
||
|
import javafx.scene.Node;
|
||
|
|
||
|
public class ContainerScrollStyleSheet{
|
||
|
|
||
|
/* Builds all necessary CSS/layout rules */
|
||
|
public ContainerScrollStyleSheet(Node target) throws Exception{
|
||
|
|
||
|
/* (1) Set rules */
|
||
|
Ruleset.load(target)
|
||
|
.add("top", Context.getInt("header-height") )
|
||
|
.add("left", Context.getInt("submenu-width") + Context.getInt("menu-width") - 3)
|
||
|
.add("right", 0)
|
||
|
// .add("pref-height", )
|
||
|
.apply();
|
||
|
}
|
||
|
|
||
|
}
|