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

nav renders a too large image loaded by "imageContent"

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 8.5.0, 8.6.2
    • Fix Version/s: 8.6.3
    • Component/s: None
    • Security Level: Jimmy
    • Labels:
      None
    • gh.sprint.customfield.default.name:
      ZK 8.6.3 S1

      Description

      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

        Attachments

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

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  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