据我理解,如果未定义div的宽度和高度属性,则父div将等于排列好的子元素宽度和高度属性的结果。
我现在的设置是这样的:
<div> //container
<div> //list of each element
<div> // element 1
... children comprised of on SVG and a few other divs
</div>
<div> // element 2
... children comprised of on SVG and
我有一个应用程序,其中有一个表和ProgressBar。当用户调整窗口大小时,我想展开进度条。对于TextBox in JavaFX,我可以设置HBox优先级并按预期实现它。但对ProgressBar来说,这是行不通的。
有人能告诉我我哪里做错了吗?
HBox root = new HBox();
final ProgressBar browser = new ProgressBar();
// final WebEngine webEngine = browser.getEngine();
// browser.setText("JJJ");
HBo