From 20bf107e2cae872ffb1c75bca45513de70766556 Mon Sep 17 00:00:00 2001 From: "hjnim.kim" Date: Sun, 20 Jan 2013 15:23:17 +0900 Subject: [PATCH] Button: bug fix when button has not a text Bug fix(round) when button has not a text Change-Id: I6a9405f7d83ef110bb4cf51ea86699e209ffdb7a --- demos/tizen-winsets/widgets/button/buttonNolist.html | 10 +++++++++- libs/patch/0010-JQM-Applied-Tizen-Button-Style.patch | 4 ++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/demos/tizen-winsets/widgets/button/buttonNolist.html b/demos/tizen-winsets/widgets/button/buttonNolist.html index 0d8204f..863bc30 100644 --- a/demos/tizen-winsets/widgets/button/buttonNolist.html +++ b/demos/tizen-winsets/widgets/button/buttonNolist.html @@ -74,7 +74,15 @@ HTML Code: - +

+ Button No text +
+

+
+

+
+

+
diff --git a/libs/patch/0010-JQM-Applied-Tizen-Button-Style.patch b/libs/patch/0010-JQM-Applied-Tizen-Button-Style.patch index d99135e..4bb3740 100644 --- a/libs/patch/0010-JQM-Applied-Tizen-Button-Style.patch +++ b/libs/patch/0010-JQM-Applied-Tizen-Button-Style.patch @@ -37,8 +37,6 @@ index 3d7d884..0be6999 100644 + } else if ( buttonStyle == "round" || ( buttonStyle == "circle" && $(el).text().length > 0 ) ) { + buttonClass += " ui-btn-round"; + } -+ -+ + if ( o.icon ) { + if ( $(el).text().length > 0 ) { + @@ -70,6 +68,8 @@ index 3d7d884..0be6999 100644 + } else { + if ( $(el).text().length > 0 ) { + innerClass += " ui-btn-hastxt"; ++ } else if ( buttonStyle == "circle" ){ ++ buttonClass += " ui-btn-round"; + } + } if ( o.mini !== undefined ) { -- 2.7.4