Month.js 821 B

1234567891011121314
  1. Ext.define('Ext.theme.neptune.picker.Month', {
  2. override: 'Ext.picker.Month',
  3. // Monthpicker contains logic that reduces the margins of the month items if it detects
  4. // that the text has wrapped. This can happen in the classic theme in certain
  5. // locales such as zh_TW. In order to work around this, Month picker measures
  6. // the month items to see if the height is greater than "measureMaxHeight".
  7. // In neptune the height of the items is larger, so we must increase this value.
  8. // While the actual height of the month items in neptune is 24px, we will only
  9. // determine that the text has wrapped if the height of the item exceeds 36px.
  10. // this allows theme developers some leeway to increase the month item size in
  11. // a neptune-derived theme.
  12. measureMaxHeight: 36
  13. });