Skip to content
This repository has been archived by the owner on Apr 9, 2021. It is now read-only.

Commit

Permalink
#84 fixed UI issue with checkboxes on windows xp
Browse files Browse the repository at this point in the history
  • Loading branch information
dillbyrne committed Sep 17, 2014
1 parent 84bb202 commit 748fc82
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
9 changes: 7 additions & 2 deletions data/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,13 @@ div.tabContent {
-moz-transition: .3s ease-in-out;
}

.excludecb,
.excludeSpan{

.profileLine{
clear:both;
}

.excludeSpan,
.excludecb{
float:right;
}

Expand Down
12 changes: 9 additions & 3 deletions data/js/set-options.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -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
Expand Down

0 comments on commit 748fc82

Please sign in to comment.