Skip to content

Fix for px-datetime-field#10 miscalculating width of px-datetime-entry in IE/Edge

Compare
Choose a tag to compare
@joshsylvester joshsylvester released this 14 Jan 23:29
· 20 commits to master since this release
e4addd6

Changes

  • Updated both px-datetime-entry and px-datetime-entry-cell to use Math.ceil(length) due to the inconsistency of rounding widths that include decimals between major browser platforms. (article & example, view in different browsers)
  • Added 1 to the calculated width of the px-datetime-entry since the input number was being cut off in multiple browsers (it was only visible properly in Chrome)
  • Cleaned up multiple eslint / formatting errors throughout the px-datetime-common files
  • Added minor contextual css that only applies to rendering of the px-datetime-entry component to "fix" the improper rendering of the icon within the px-datetime-common demo (icon is rendering full size)

Related issue

predixdesignsystem/px-datetime-field#10