mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-06-24 17:10:19 +12:00
Add min size comp methods
This commit is contained in:
parent
7521f08512
commit
4ee5c18960
|
@ -92,6 +92,14 @@ public abstract class Comp<S extends CompStructure<?>> {
|
|||
}));
|
||||
}
|
||||
|
||||
public Comp<S> minWidth(double width) {
|
||||
return apply(struc -> struc.get().setMinWidth(width));
|
||||
}
|
||||
|
||||
public Comp<S> minHeight(double width) {
|
||||
return apply(struc -> struc.get().setMinHeight(width));
|
||||
}
|
||||
|
||||
public Comp<S> maxWidth(int width) {
|
||||
return apply(struc -> struc.get().setMaxWidth(width));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue