【发布时间】:2013-11-07 19:56:29
【问题描述】:
我有问题。我想在 Seaside Smalltalk 中创建一个站点,该站点将在 jQuery UI Accordion 中显示 Collection 的所有子类的方法。我开发了两种方法:
renderContentOn: html
html div script: html jQuery new accordion;
with: [(self elements: html)
keysAndValuesDo: [:t2 :t3 |
html
div: [html anchor: t2].
html div
with: [html paragraph: t3]]]
elements: html
| dict |
dict := Dictionary new.
Collection withAllSubclasses
do: [:e | dict
at: e asString
put: [html orderedList list: e methodDict]].
^ dict
除了一件事之外,一切都很好:包含 div 的高度非常高:7000 像素。我不知道是什么原因造成的,我需要帮助。
更新: 我正在使用 Seaside 3.0.7。这些样式是内联设置的。我提供的两个文件就是我使用的一切。文本大约占 div 的 1/10,剩下的只是空白。
【问题讨论】:
-
div 中的内容是否足够高?我的意思是,是没有滚动条的问题吗?
-
也许我不够清楚:文本大约占 div 的 1/10,其余的只是空的 spce。我查看了源代码并将 div 设置为 7000px。如果我在 Chrome 检查器中禁用它(高度元素),一切正常。我不知道告诉 Seaside 不要编码这个“高度:7000px”。
-
您能告诉我们更多细节吗?您使用的是哪个版本的 Seaside,是否包含任何 css/js 文件? 7000px 是设置为内联样式还是css?
标签: jquery height accordion smalltalk seaside