From 748fc82f3fc82abd1c3b094bf70369bf27d24369 Mon Sep 17 00:00:00 2001 From: dillbyrne Date: Wed, 17 Sep 2014 16:54:40 +0100 Subject: [PATCH] #84 fixed UI issue with checkboxes on windows xp --- data/css/style.css | 9 +++++++-- data/js/set-options.js | 12 +++++++++--- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/data/css/style.css b/data/css/style.css index 43c3b0f6..edb8033c 100644 --- a/data/css/style.css +++ b/data/css/style.css @@ -96,8 +96,13 @@ div.tabContent { -moz-transition: .3s ease-in-out; } -.excludecb, -.excludeSpan{ + +.profileLine{ + clear:both; +} + +.excludeSpan, +.excludecb{ float:right; } diff --git a/data/js/set-options.js b/data/js/set-options.js index abcbd90a..cbd5c2b1 100644 --- a/data/js/set-options.js +++ b/data/js/set-options.js @@ -67,6 +67,10 @@ self.port.once('ua_list', function(data) { var innerListItem = document.createElement("li"); + //container for the line to fix float issue on win xp + var container = document.createElement("div"); + container.setAttribute("class","profileLine"); + //pass the item index for the parent and for child as the value and id var radio = document.createElement("input"); radio.setAttribute("name","ua"); @@ -85,9 +89,11 @@ self.port.once('ua_list', function(data) { chkbox.setAttribute("id",data.uadata[i].useragents[j].profileID); chkbox.setAttribute("value",i+","+j); - innerListItem.appendChild(radio); - innerListItem.appendChild(label); - innerListItem.appendChild(chkbox); + container.appendChild(radio); + container.appendChild(label); + container.appendChild(chkbox); + + innerListItem.appendChild(container); //prevent clicks on child element triggering the showing/hiding of the //child list