Steps to replicate the issue (include links if applicable):
This requires a situation where a dropdown menu is rendered in specific positions and so I'm not sure it can be replicated on the main branch.
- This patchdemo will allow you to reproduce the bug
- Alternatively, apply this patch (at patchset #3 at time of writing) and use the mobile VE skin by appending ?useformat=mobile#/editor/0 to a wiki url
- Switch on responsive layout mode and set it to mobile phone size. On my machine, 442 pixels or fewer worked.
- Click on a dropdown menu that's too far to the right, in this case the + menu which contains "link"
What happens?:
- The dropdown menu renders at full width
What should have happened instead?:
- The dropdown menu should be narrower, as it is either with the style menu (which is further left) or with a browser window which is wide enough
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):
Expected behaviour:
Actual behaviour:
In debugging I have found that in oojs-ui-core.js at line 5785 seems to make the difference:
const clipWidth = allotedWidth < naturalWidth;
This appears to be true when the bug manifests and false when it does not.
I also tried switching the two dropdown menus around near modules/ve-mw/init/targets/ve.init.mw.MobileArticleTarget.js:75 and found that the issue continued to manifest on the second of the two items, ie, that the + menu behaved as intended and instead the 'Style' menu manifested the bug.



