Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1316] ipad popover buttons bug

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:55:50.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.5.0
ComponentsiOS
Labelsipad, popover
ReporterTamas Daniel
AssigneeReggie Seagraves
Created2011-04-15T02:49:12.000+0000
Updated2011-04-17T01:55:50.000+0000

Description

for an ipad popover the left button cannot be set because it points to the right button

TiUIiPadPopoverProxy.m line 112

-(void)setRightNavButton:(id)item withObject:(id)properties {

ENSURE_SINGLE_ARG_OR_NIL(item,TiViewProxy);
[self replaceValue:item forKey:@"rightNavButton" notification:NO];
[self refreshTitleBarWithObject:properties];

}

-(void)setLeftNavButton:(id)item withObject:(id)properties {

ENSURE_SINGLE_ARG_OR_NIL(item,TiViewProxy);
[self replaceValue:item forKey:@"rightNavButton" notification:NO];
[self refreshTitleBarWithObject:properties];

}

Comments

  1. Tamas Daniel 2011-04-15

    the solution is really simple

    change this code

    -(void)setLeftNavButton:(id)item withObject:(id)properties {

       ENSURE_SINGLE_ARG_OR_NIL(item,TiViewProxy);
       [self replaceValue:item forKey:@"rightNavButton" notification:NO];
       [self refreshTitleBarWithObject:properties];
       

    }

    to

    -(void)setLeftNavButton:(id)item withObject:(id)properties {

       ENSURE_SINGLE_ARG_OR_NIL(item,TiViewProxy);
       [self replaceValue:item forKey:@"leftNavButton" notification:NO];
       [self refreshTitleBarWithObject:properties];
       

    }

  2. Don Thorp 2011-04-15

    Tamas says this is fixed. Please verify.

  3. Thomas Huelbert 2011-04-15

    confirmed fixed in 1.4.1

    valid, needs testcase

  4. Jeff Haynie 2011-04-15

    (from [bbfceb47c73327e47089375e8f92ad9cac75361f]) [#1316 state:resolved] added leftNav to popOver http://github.com/appcelerator/titanium_mobile/commit/bbfceb47c73327e47089375e8f92ad9cac75361f"> http://github.com/appcelerator/titanium_mobile/commit/bbfceb47c7332...

JSON Source