Doxygen:如何修复TreeView分隔栏,使其延伸到页面底部

时间:2018-08-21 14:41:51

标签: doxygen

TREEVIEW与doxygen一起使用时,将左侧框分隔开的横条在页面的下方停止。

Example screenshot of the bar stopping about 90% of the way down the page

是否可以解决此问题,以便分隔符始终延伸到页面底部?

在我的Doxyfile中,我看不到任何可以控制它的选项。似乎doxygen主页也有同样的问题(尽管由于配色方案而不太明显)。这只是氧气中的错误吗?

A second example screenshot of the bar stopping about 90% of the way down the page, this time from the Doxygen homepage.

1 个答案:

答案 0 :(得分:0)

在我看来,当人们使用非常小的字母或具有非常大的屏幕/画布时,这看起来像是Doxygen中的错误。 在生成的html/navtree.css中,有一个块:

.ui-resizable-e {
  background-image:url("splitbar.png");
  background-size:100%;
  background-repeat:no-repeat;
  background-attachment: scroll;
  cursor:ew-resize;
  height:100%;
  right:0;
  top:0;
  width:6px;
}

我认为,当background-repeat:no-repeat;设置为background-repeat:repeat;时,这会更好,

如此:

.ui-resizable-e {
  background-image:url("splitbar.png");
  background-size:100%;
  background-repeat:repeat-y;
  background-attachment: scroll;
  cursor:ew-resize;
  height:100%;
  right:0;
  top:0;
  width:6px;
}

作为一种解决方案/解决方法,对于您自己生成的输出,可以使用额外的样式表设置HTML_EXTRA_STYLESHEET,以取代默认样式表设置,例如HTML_EXTRA_STYLESHEET = my_navtree.css并将以下代码放在my_navtree.css中:

.ui-resizable-e {
  background-repeat:repeat-y;
}

我刚刚为doxygen的主存储库推送了一个建议的补丁(拉请求6455,https://github.com/doxygen/doxygen/pull/6455):“树视图和普通文本区域之间的HTML输出中的截断分割条”,此拉请求已集成成为氧气的开发大师。