Scratch-blocks: On Android, number picker makes the note picker appear half-width

Created on 14 Nov 2018  ·  1Comment  ·  Source: LLK/scratch-blocks

Expected Behavior

The note picker field should always be the same size.

Actual Behavior

On Android, sometimes it appears cut off, at only half the correct width. It seems to happen after you've used the number picker, i.e. to set the number of beats on the same block.

image16

Reported by @benjiwheeler

Steps to Reproduce

Use Android Tablet Chrome
Start with new default project
add music extension
drag out play note block
tap on “60” (note field) -- width of picker is good!
tap on “0.25” (beats field) and bring up number picker
tap away from the number picker to dismiss
tap on “60” (note field) -- width of picker is too narrow!

Operating System and Browser

Android Tablet Chrome

android bug help wanted

Most helpful comment

The issue here is that some field editors set the width on the dropdown's contentDiv but never clear it.
I've fixed this on our side recently by clearing the dropdown div's content width when the dropdown is hidden.

See: https://github.com/Microsoft/pxt-blockly/pull/171

>All comments

The issue here is that some field editors set the width on the dropdown's contentDiv but never clear it.
I've fixed this on our side recently by clearing the dropdown div's content width when the dropdown is hidden.

See: https://github.com/Microsoft/pxt-blockly/pull/171

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tmickel picture tmickel  ·  3Comments

MegaApuTurkUltra picture MegaApuTurkUltra  ·  4Comments

tmickel picture tmickel  ·  3Comments

rachel-fenichel picture rachel-fenichel  ·  4Comments

towerofnix picture towerofnix  ·  6Comments