Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-386

sclass is not applying when div visible false

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 5.0.9
    • 5.0.8
    • Components
    • None

      http://zkfiddle.org/sample/2bp62ak/2-sclass-is-not-appling-on-div-if-visible-false
      <zk>
      <style>
      .es-droptargetpreview

      { display:block !important; width:50px; height:50px; border:1px solid red; }

      </style>
      <div id="test" sclass="es-droptargetpreview" visible="false" />

      <button onClick="test.setVisible(true)" label="it work if setVisible(true)" />
      </zk>

      The expecting behavior is the es-droptargetpreview css class should show up on the div ,
      and the css class should work for it in this case.

      If works if we have a button to setVisible(true) later.

      It looks like kind of ROD mechanism , but I think it's not a good idea,
      since we might need to access the sclass from javascript or css in some cases.

            Unassigned Unassigned
            TonyQ TonyQ
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 18 minutes
                18m