Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1785] Android - Overflow menu wrongly positioned on handheld

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionCannot Reproduce
Resolution Date2013-02-26T20:00:47.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsactionbar, android, menu, mobile, overflow
ReporterSebastien Jacq
AssigneeMauro Parra-Miranda
Created2013-02-25T22:21:30.000+0000
Updated2016-03-08T07:40:40.000+0000

Description

On Android handheld device, the overflow menu is wrongly positioned (left aligned with the overflow button). This was tested on HTC Desire X (Android 4.1) The same code on tablet Galaxy Tab II (android 4.1 or 4.0.3) works fine. The menu is fully visible with a bit of space on the right (as expected). To reproduce: - Create a standatd Titanium single Window Projet - Replace the content of ui/handheld/android/applicationWindow.js with the attached file (few lines to create 5 menu item which goto the overflow by default). The result on the handheld is shown in the png file

Attachments

FileDateSize
app.js2013-02-27T20:33:22.000+0000986
ApplicationWindow.js2013-02-25T22:21:30.000+00001409
HTC Desire X - overflow menu cut.png2013-02-25T22:21:30.000+000019121

Comments

  1. Carter Lathrop 2013-02-26

    Could not reproduce on Galaxy 4.1.1. Please refer to https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report Followed steps and page in question did not appear.
  2. Carter Lathrop 2013-02-26

    Needs more/clearer information/test case. Preferably in the form of an app.js.
  3. Sebastien Jacq 2013-02-27

    Please see the attached app.js to reproduce. I also made a mistake on the Android version, the HTC handheld is running 4.0.4
  4. Carter Lathrop 2013-02-27

    Thanks for the app.js, will test again on 4.0.3 in emulator.
  5. Sebastien Jacq 2013-02-28

    Carter, please note i found the issue. I was using a custom style. Removing everything to go back to the default Ti style fixes the issue. I may comment later when I'll figure out exactly what caused the issue with the custom style as it works fine for everything else.
  6. Carter Lathrop 2013-02-28

    Ok, resolving for now, if you come upon any further issues with this then feel free to comment below and I will review as necessary. Thanks for the heads up.

JSON Source