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 8219 Focusable bug fix. #1815

Merged
merged 3 commits into from Mar 23, 2012
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
7 changes: 5 additions & 2 deletions mobileweb/titanium/Ti/UI/TextField.js
Expand Up @@ -9,8 +9,11 @@ define(["Ti/_/declare", "Ti/_/UI/TextBox", "Ti/_/css", "Ti/_/dom", "Ti/_/lang",
var f = this._field = dom.create("input", {
autocomplete: "off",
style: {
width: "100%",
height: "100%"
position: "absolute",
left: 0,
right: 0,
top: 0,
bottom: 0
}
}, this.domNode);

Expand Down
4 changes: 2 additions & 2 deletions mobileweb/titanium/Ti/_/UI/Element.js
Expand Up @@ -839,7 +839,7 @@ define(
_doBackground: function(evt) {
var evt = evt || {},
m = (evt.type || "").match(/mouse(over|out)/),
node = this._focus.node,
node = this.domNode,
bi = this.backgroundImage || this._defaultBackgroundImage || "none",
bc = this.backgroundColor || this._defaultBackgroundColor;

Expand Down Expand Up @@ -1136,7 +1136,7 @@ define(
focusable: {
value: false,
set: function(value) {
dom.attr[value ? "add" : "remove"](this._focus.node, "tabindex", 0);
dom.attr[value ? "set" : "remove"](this._focus.node, "tabindex", 0);
return value;
}
},
Expand Down