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-11269] Kitchen sink:Base UI:Window Properties->Toggling height/wi... #3582

Merged
merged 10 commits into from Dec 19, 2012

Conversation

krowley
Copy link
Contributor

@krowley krowley commented Dec 12, 2012

...dth changing opacity of window

@ghost ghost assigned pingwang2011 Dec 13, 2012
{
//
// Special case where where the windowProxy arg here does not match our underlying proxy.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo "where where"

…/width changing opacity of window -- fix typo in comment
…/width changing opacity of window -- Implement a cleaner solution as suggested by Ping
…/width changing opacity of window -- remove unneeded changes
…/width changing opacity of window -- remove unneeded changes
…/width changing opacity of window -- another attempt to get this right
String propertyName = name;
Object newValue = value;

if (isLocaleProperty(name)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not put the code in the if block to a separate method in KrollProxy.java so we don't need to copy it over here?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should call mViewProxy.isLocaleProperty() and mViewProxy.updateLocaleProperty().

…/width changing opacity of window -- More changes in response to comments in the pull request
String propertyName = name;
Object newValue = value;

updateLocalePropertyNameAndValue(propertyName, newValue);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here we try to update the property of mViewProxy, so we should use mViewProxy.updateLocalePropertyNameAndValue().

…g height/width changing opacity of window -- More changes in response to comments in the pull request"

This reverts commit 9298b3c.
…/width changing opacity of window -- more changes in response to comments in pull request

if (mViewProxy.isLocaleProperty(name)) {
Log.i(TAG, "Updating locale: " + name, Log.DEBUG_MODE);
Pair<String, String> update = mViewProxy.updateLocaleProperty(name, value.toString());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should use TiConvert.toString(value) here and also in KrollProxy.java

…/width changing opacity of window -- more changes in response to pull request comments
@pingwang2011
Copy link
Contributor

Code reviewed and functionally tested. Ran the test case on rhino and v8 and also ran KS and Anvil for a sanity check. All passed. Accepted

pingwang2011 added a commit that referenced this pull request Dec 19, 2012
[TIMOB-11269] Kitchen sink:Base UI:Window Properties->Toggling height/wi...
@pingwang2011 pingwang2011 merged commit 853e18b into tidev:master Dec 19, 2012
@vishalduggal vishalduggal mentioned this pull request Jan 16, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants