Skip to content

Commit

Permalink
Merge pull request #4300 from salachi/TIMOB-11567-PickerUseSpinner
Browse files Browse the repository at this point in the history
TIMOB-11567-Default ColumnProxy width to FILL
  • Loading branch information
ayeung committed May 21, 2013
2 parents 2dd959e + 5e007c3 commit 7bb4489
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import org.appcelerator.kroll.common.AsyncResult;
import org.appcelerator.kroll.common.TiMessenger;
import org.appcelerator.titanium.TiApplication;
import org.appcelerator.titanium.TiC;
import org.appcelerator.titanium.TiContext;
import org.appcelerator.titanium.proxy.TiViewProxy;
import org.appcelerator.titanium.view.TiUIView;
Expand Down Expand Up @@ -39,6 +40,7 @@ public class PickerColumnProxy extends TiViewProxy implements PickerRowListener
public PickerColumnProxy()
{
super();
defaultValues.put(TiC.PROPERTY_WIDTH, TiC.LAYOUT_FILL);
}

public PickerColumnProxy(TiContext tiContext)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,9 @@ public PickerColumnProxy getFirstColumn(boolean createIfMissing)
PickerColumnProxy column = getColumn(0);
if (column == null && createIfMissing) {
column = new PickerColumnProxy();
//Force applying default values
KrollDict d = new KrollDict();
column.handleCreationDict(d);
add(column);
}
return column;
Expand Down

0 comments on commit 7bb4489

Please sign in to comment.