0

groupbox 3d on ZK 7 RC

asked 2013-11-05 10:08:51 +0800

cocoes gravatar image cocoes flag of Spain
94 6

Hi,

I would like to know if the caption position on 3d groupbox fo5 ZK 7 has changed.

On ZK 6.X, the position is on the right side of the title, like on the ZK demo, but in ZK 7 RC seems to be down of the groupbox title, like in a different row.

Here you can see a demo to test with ZK 6: http://www.zkfiddle.org/sample/2d2uort/6-z-groupbox-3d-zk7 .

Is it a feature or a bug?

Regards,

Vicente

delete flag offensive retag edit

4 Answers

Sort by ยป oldest newest most voted
1

answered 2013-11-05 10:14:29 +0800

vincentjian gravatar image vincentjian
2245 6

Hi Vicente,

It is a feature. If you want the same look and feel in ZK7, you can try add custom style.

<caption style="float: right"/>
link publish delete flag offensive edit

Comments

Hi Vincent, ok, I've tested and I also had to add a style="float:inherit" to the div inside the caption, and now it works in the same position as with ZK6. Many thanks.

cocoes ( 2013-11-05 15:43:00 +0800 )edit
1

answered 2014-07-02 09:14:38 +0800

cocoes gravatar image cocoes flag of Spain
94 6

Ok, I've solved it removing the groupbox title and moving it to the caption in a hbox before the arrow's div. The groupbox's title was the problem.

link publish delete flag offensive edit
0

answered 2014-07-02 08:47:06 +0800

cocoes gravatar image cocoes flag of Spain
94 6

Hi again,

I've tryed to migrate to ZKEE 7.0.2 and it seems to have changed again how Groupbox works and fails showing properly.

It was working fine like this with 7.0.0 and 7.0.1, but the arrow appears now (with 7.0.2) in the groupbox bottom instead of the right side:

<style>
        .z-groupbox-3d .open-false,
        .z-groupbox-3d .open-true {
          background: url("${url_base}images/arrow.png") no-repeat right 0;
          height: 16px;  
          padding-right: 20px;
          font-weight: bold;
        } 
        .z-groupbox-3d div.open-false {
          background-position: right -16px;
        }
</style>
<groupbox id="myGroup" mold="3d" title="MyTitle" open="false" sclass="MyText">
<attribute name="onOpen"><![CDATA[
       arrow.setSclass("open-" + self.isOpen());
]]></attribute>
<caption style="float:right;">
       <div id="arrow" class="open-false" style="float:inherit;"></div>
</caption>
    ... more elements
</groupbox>

I'm not able to move it again to the right with CSS...

link publish delete flag offensive edit
0

answered 2014-07-03 02:25:00 +0800

vincentjian gravatar image vincentjian
2245 6

updated 2014-07-03 02:25:47 +0800

Hi, we change the DOM structure for caption component to fix the bug.

You can try specify CSS to the arrow div with position attribute. Refer to the zkfiddle sample.

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
2 followers

RSS

Stats

Asked: 2013-11-05 10:08:51 +0800

Seen: 20 times

Last updated: Jul 03 '14

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More