我有下一个代码:
public class MyScroll extends JFrame {
public MyScroll() {
JFrame frame = new JFrame();
JPanel panel = new JPanel();
panel.setLayout(null);
for (int i = 0; i < 10; i++) {
JButton b = new JButton("Hello-" + i);
b.setBo
因此,关于我的last question,我目前正在努力解决通知托盘被扩展通知阻塞的问题。问题是,通知托盘的垂直ScrollBar在需要时不会显示,例如,当展开太多通知时。我当前的解决方案更改了通知的高度,以便显示通知的完整内容。Here is a picture showing the overflow.我正在查找gnome- ScrollView代码和我能找到的任何文档,但我还没有找到任何更新gnome-shell的方法。将vscrollbar策略设置为St.PolicyType.ALWAYS时,scrollbar仍然不会滚动。这也可能是因为通知主体根据当前列表中的通知数量进行了固定。
我需要动态设置垂直布局的高度。我的页面有一个高度100 My的标题图像,高度26 My的标签是主要内容。我已经用App.controller.js编写了以下代码。不起作用
// tab_layt is the id of vertical layout var thisView = this.getView().byId("tab_layt"); var height = jQuery(window).height() - (jQuery(".header").height() + jQuery(".tab").height()); thisVi