2017-08-18 36 views
1

enableTickmarks對於兩個滑塊控件都是true,但只有一個顯示它們?兩個m.Slider控件的屬性相同,但其中一個不顯示標記

enter image description here

<core:FragmentDefinition xmlns="sap.m" xmlns:core="sap.ui.core"> 
    <Dialog title="{Title}" icon="sap-icon://create"> 
     <beginButton> 
      <Button text="{i18n>cancel}" press="handleCloseCompetencySelection"/> 
     </beginButton> 
     <endButton> 
      <Button type="Accept" text="{i18n>submit}" press="handleSubmitCompetencySelection"/> 
     </endButton> 
     <content> 
      <FlexBox direction="Column" alignItems="Center" class="sapUiMediumMarginTopBottom"> 
       <items> 
        <HBox><Label text="{i18n>required}: "/><Label id="RequiredProficiencyLabel" text="{ProfidrDescr}" design="Bold"/></HBox> 
        <Slider id="RequiredProficiencySlider" enabled="false" liveChange="onSliderChange" enableTickmarks="true" min="0" max="10" 
         class="sapUiSmallMarginBottom" width="400px"/> 
       </items> 
      </FlexBox> 
      <FlexBox direction="Column" alignItems="Center" class="sapUiMediumMarginTopBottom"> 
       <items> 
        <HBox><Label text="{i18n>achieved}: "/><Label id="ProficiencyLabel" text="" design="Bold"/></HBox> 
        <Slider id="ProficiencySlider" liveChange="onSliderChange" enableTickmarks="true" min="0" max="10" class="sapUiSmallMarginBottom" 
         width="400px"/> 
       </items> 
      </FlexBox> 
      <MessageStrip text="{i18n>dragMessage}" type="Information" showIcon="true" class="sapUiMediumMargin"></MessageStrip> 
     </content> 
    </Dialog> 
</core:FragmentDefinition> 
+1

我剛剛添加了一個示例,說明該錯誤不再可再現(在即將推出的UI5版本中)。 – boghyon

回答

0

滑稽的故事:

  1. 爲 「已禁用」 滑塊對勾標記看起來更大膽,感知比 「已啓用」 一個

  2. 第二滑塊顯示刻度線,但由於標記的灰度很淺的顏色,您無法看到它們(爲了確保它是真實的,請嘗試查看圖像以不同的角度,你會看到第二個滑塊的標記;或使用其他顯示器)

相關問題