【问题标题】:How to increase the dialog size in touch UI, adobe cq5?如何在触摸 UI、adobe cq5 中增加对话框大小?
【发布时间】:2015-07-09 12:38:38
【问题描述】:

我需要增加触摸 ui 对话框 cq5 的长度和宽度。我有多个标签不适合小尺寸的对话框,因此对齐被破坏了。

【问题讨论】:

    标签: user-interface dialog touch adobe aem


    【解决方案1】:

    您可以在 _cq_dialog.xml 中添加“宽度”参数

    <?xml version="1.0" encoding="UTF-8"?>
    <jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0"
          xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
          jcr:primaryType="nt:unstructured"
          jcr:title="My title"
          width="{Long}650"
          sling:resourceType="cq/gui/components/authoring/dialog">
    

    【讨论】:

      【解决方案2】:
      1. 在您的组件中创建一个类型为 cq:EditConfig 并命名为 cq:editConfig 的节点,这应该是对话节点的兄弟节点。
      2. 向 cq:editConfig 节点添加一个名为“cq:dialogMode”的属性,键入“String”和值“floating”。
      3. 向您的对话框节点添加两个属性,即“Long”类型的高度和宽度,以及您希望对话框大小的值。就是这样。

      【讨论】:

      • cq:heightcq:width吗?或者只是heightwidth
      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多