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

WCAG splitter/splitlayout (collapse="after")

XMLWordPrintable

      Steps to Reproduce

      same examples as ZK-4767 / ZK-4768

      move the separator using keyboard

      Current Result

      some postions produce a large amount of decimal digits in aria-valuenow and aria-valuelabel:

      Expected Result

      same number formatting as in the collapse="before" case

      Debug Information

      https://github.com/zkoss/zkcml/commit/bcf8d03d18eca8e33ef6ad7a26235d492cead7ed#diff-dd31c4b79823f5806744fb4e9a4744b6af8a143bebc9234ce5fd39d22b03db8cR82-R84

      Line 82 does the number to string formatting .toFixed(2) resulting in a string
      the next line then uses this string to subract from 100 resulting again in an unformatted number with eventual (to be expected) floating point errors

      there's also a potential DIV/0 error when the whole splitter/splitlayout has a width of 0px resulting in 'NaN'

      Workaround

            DevChu DevChu
            cor3000 cor3000
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: