Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TIMOB-11567-Default ColumnProxy width to FILL #4300

Merged
merged 1 commit into from
May 21, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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