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

nav renders a too large image loaded by "imageContent"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 8.6.3
    • 8.5.0, 8.6.2
    • None
    • Security Level: Jimmy
    • None
    • ZK 8.6.3 S1

      Steps to Reproduce

      1. run the code

          <navbar orient="vertical" width="200px" viewModel="@id('vm')@init('org.zkoss.reference.component.essential.ImageVM')">
              <navitem label="Home" iconSclass="z-icon-home" />
              <nav label="Get Started" iconSclass="z-icon-th-list" badgeText="3" imageContent="@init(vm.image)">
              </nav>
          </navbar>
      

      Current Result

      Expected Result

      should render in proper size upon its parent

      Debug Information

      • there might some rules missing:

      font-size: 14px;
      width: 16px;
      height: 16px;
      margin-right: 12px;

      • 8.0.5 has no such issue

      Workaround

        1. ImageVM.java
          0.5 kB
        2. tooLarge.png
          tooLarge.png
          11 kB
        3. zklogo3.png
          zklogo3.png
          3 kB

            Leon03 Leon03
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 4 hours
                4h
                Remaining:
                Time Spent - 3 hours Remaining Estimate - 1 hour
                1h
                Logged:
                Time Spent - 3 hours Remaining Estimate - 1 hour
                3h