Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13502] Popover sizing is calculated incorrectly when POPOVER_ARROW_DIRECTION_LEFT or RIGHT

GitHub Issuen/a
TypeBug
Priorityn/a
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsios, popover
ReporterCarter Lathrop
AssigneeUnknown
Created2013-04-09T00:43:52.000+0000
Updated2018-02-28T20:04:04.000+0000

Description

*Problem* When a Ti.UI.iPad.createPopover uses a LEFT or RIGHT arrow, the popover seems to be the wrong size. Some of my content is being cut off. UP and DOWN work as expected. Orientation seems to make no difference. (problem is in landscape or portrait) Suggestion of where to patch TiSDK would be welcome, as this is a bit of a blocker for me. *Steps to reproduce* 1. Copy and paste code provided into app.js 2. Run on iPad simulator 3. Click left side button, notice popover functionality as expected 4. Click right side button, notice popover content being cut off

Attachments

FileDateSize
app.js2013-04-09T00:43:52.000+00001669
bad.png2013-04-09T00:43:52.000+000022607
good.png2013-04-09T00:43:52.000+000024936

Comments

  1. Carter Lathrop 2013-04-09

    Mitchell, thank you for bringing this to our attention. Engineering will take a look at it. PS. I enjoyed the Community reference :) Regards, Carter
  2. Mitchell Amihod 2013-04-09

    great thanks. :D
  3. Mitchell Amihod 2013-04-11

    new info: in my app (where i first saw the bug) I just noticed that if the popover is displaying in it's buggy mode (with arrow on the LEFT) if i then change orientation of the device, when it redraws, the popover looks correct. So hopefully that will help.
  4. Mitchell Amihod 2013-04-17

    any news on this?
  5. Arthur Evans 2013-04-30

    For some reason, this issue seems to be related to the hard-coded left and right values. When I change view and popover to use width of Ti.UI.FILL, or simply omit the size values, the popover appears to work correctly. So it seems like it's specifically the combination of the hard-coded left and right values with the right arrow that's causing the problem.
  6. Mitchell Amihod 2013-05-01

    awesome. thanks arthur - will give it a shot.

JSON Source