Skip to content

Commit

Permalink
Fix IE11 rendering issues on W7
Browse files Browse the repository at this point in the history
  • Loading branch information
jcenturion committed Mar 5, 2015
1 parent 6f9fd95 commit e78908e
Show file tree
Hide file tree
Showing 5 changed files with 103 additions and 130 deletions.
76 changes: 38 additions & 38 deletions dist/scripts/api-console.js
Original file line number Diff line number Diff line change
Expand Up @@ -1190,48 +1190,48 @@

$scope.context.forceRequest = false;

function cleanSchemeMetadata(collection, context) {
Object.keys(collection).map(function (key) {
if (collection[key][0].isFromSecurityScheme) {
delete collection[key];
}

if (context.plain[key].definitions[0].isFromSecurityScheme) {
delete context.plain[key];
}
});
}

function updateContextData (type, scheme, collection, context) {
var details = $scope.securitySchemes[scheme].describedBy || {};
var securityHeaders = details[type] || {};

if (securityHeaders) {
Object.keys(securityHeaders).map(function (key) {
if (!securityHeaders[key]) {
securityHeaders[key] = {
id: key,
type: 'string'
};
}

securityHeaders[key].displayName = key;
securityHeaders[key].isFromSecurityScheme = true;
collection[key] = [securityHeaders[key]];

context.plain[key] = {
definitions: [securityHeaders[key]],
selected: securityHeaders[key].type
};
context.values[key] = [undefined];
});
}
}
// function cleanSchemeMetadata(collection, context) {
// Object.keys(collection).map(function (key) {
// if (collection[key][0].isFromSecurityScheme) {
// delete collection[key];
// }

// if (context.plain[key].definitions[0].isFromSecurityScheme) {
// delete context.plain[key];
// }
// });
// }

// function updateContextData (type, scheme, collection, context) {
// var details = $scope.securitySchemes[scheme].describedBy || {};
// var securityHeaders = details[type] || {};

// if (securityHeaders) {
// Object.keys(securityHeaders).map(function (key) {
// if (!securityHeaders[key]) {
// securityHeaders[key] = {
// id: key,
// type: 'string'
// };
// }

// securityHeaders[key].displayName = key;
// securityHeaders[key].isFromSecurityScheme = true;
// collection[key] = [securityHeaders[key]];

// context.plain[key] = {
// definitions: [securityHeaders[key]],
// selected: securityHeaders[key].type
// };
// context.values[key] = [undefined];
// });
// }
// }

$scope.securitySchemeChanged = function (scheme) {
var info = scheme.split('|');
var type = info[0];
var name = info[1];
// var name = info[1];

$scope.currentSchemeType = type;

Expand Down
27 changes: 9 additions & 18 deletions dist/styles/api-console-dark-theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -1520,8 +1520,7 @@ th {
-ms-transform: perspective(45px) rotateX(30deg);
width: 108px;
position: absolute;
margin-left: -40px;
margin-left: 10px\9;
right: 0;
z-index: -1;
top: 0px;
}
Expand All @@ -1537,8 +1536,7 @@ th {
-ms-transform: perspective(45px) rotateX(30deg);
width: 108px;
position: absolute;
margin-left: -40px;
margin-left: 10px\9;
right: 0;
z-index: -1;
top: 0px;
}
Expand All @@ -1554,8 +1552,7 @@ th {
-ms-transform: perspective(45px) rotateX(30deg);
width: 108px;
position: absolute;
margin-left: -28px;
margin-left: 8px\9;
right: 0;
z-index: -1;
top: 0px;
}
Expand All @@ -1571,8 +1568,7 @@ th {
-ms-transform: perspective(45px) rotateX(30deg);
width: 108px;
position: absolute;
margin-left: -36px;
margin-left: 8px\9;
right: 0;
z-index: -1;
top: 0px;
}
Expand All @@ -1588,8 +1584,7 @@ th {
-ms-transform: perspective(45px) rotateX(30deg);
width: 108px;
position: absolute;
margin-left: -32px;
margin-left: 9px\9;
right: 0;
z-index: -1;
top: 0px;
}
Expand All @@ -1605,8 +1600,7 @@ th {
-ms-transform: perspective(45px) rotateX(30deg);
width: 108px;
position: absolute;
margin-left: -19px;
margin-left: 11px\9;
right: 0;
z-index: -1;
top: 0px;
}
Expand All @@ -1622,8 +1616,7 @@ th {
-ms-transform: perspective(45px) rotateX(30deg);
width: 108px;
position: absolute;
margin-left: -34px;
margin-left: 9px\9;
right: 0;
z-index: -1;
top: 0px;
}
Expand All @@ -1639,8 +1632,7 @@ th {
-ms-transform: perspective(45px) rotateX(30deg);
width: 108px;
position: absolute;
margin-left: -21px;
margin-left: 9px\9;
right: 0;
z-index: -1;
top: 0px;
}
Expand All @@ -1656,8 +1648,7 @@ th {
-ms-transform: perspective(45px) rotateX(30deg);
width: 108px;
position: absolute;
margin-left: -31px;
margin-left: 9px\9;
right: 0;
z-index: -1;
top: 0px;
}
Expand Down
27 changes: 9 additions & 18 deletions dist/styles/api-console-light-theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -1520,8 +1520,7 @@ th {
-ms-transform: perspective(45px) rotateX(30deg);
width: 108px;
position: absolute;
margin-left: -40px;
margin-left: 10px\9;
right: 0;
z-index: -1;
top: 0px;
}
Expand All @@ -1537,8 +1536,7 @@ th {
-ms-transform: perspective(45px) rotateX(30deg);
width: 108px;
position: absolute;
margin-left: -40px;
margin-left: 10px\9;
right: 0;
z-index: -1;
top: 0px;
}
Expand All @@ -1554,8 +1552,7 @@ th {
-ms-transform: perspective(45px) rotateX(30deg);
width: 108px;
position: absolute;
margin-left: -28px;
margin-left: 8px\9;
right: 0;
z-index: -1;
top: 0px;
}
Expand All @@ -1571,8 +1568,7 @@ th {
-ms-transform: perspective(45px) rotateX(30deg);
width: 108px;
position: absolute;
margin-left: -36px;
margin-left: 8px\9;
right: 0;
z-index: -1;
top: 0px;
}
Expand All @@ -1588,8 +1584,7 @@ th {
-ms-transform: perspective(45px) rotateX(30deg);
width: 108px;
position: absolute;
margin-left: -32px;
margin-left: 9px\9;
right: 0;
z-index: -1;
top: 0px;
}
Expand All @@ -1605,8 +1600,7 @@ th {
-ms-transform: perspective(45px) rotateX(30deg);
width: 108px;
position: absolute;
margin-left: -19px;
margin-left: 11px\9;
right: 0;
z-index: -1;
top: 0px;
}
Expand All @@ -1622,8 +1616,7 @@ th {
-ms-transform: perspective(45px) rotateX(30deg);
width: 108px;
position: absolute;
margin-left: -34px;
margin-left: 9px\9;
right: 0;
z-index: -1;
top: 0px;
}
Expand All @@ -1639,8 +1632,7 @@ th {
-ms-transform: perspective(45px) rotateX(30deg);
width: 108px;
position: absolute;
margin-left: -21px;
margin-left: 9px\9;
right: 0;
z-index: -1;
top: 0px;
}
Expand All @@ -1656,8 +1648,7 @@ th {
-ms-transform: perspective(45px) rotateX(30deg);
width: 108px;
position: absolute;
margin-left: -31px;
margin-left: 9px\9;
right: 0;
z-index: -1;
top: 0px;
}
Expand Down
76 changes: 38 additions & 38 deletions src/app/directives/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,48 +270,48 @@

$scope.context.forceRequest = false;

function cleanSchemeMetadata(collection, context) {
Object.keys(collection).map(function (key) {
if (collection[key][0].isFromSecurityScheme) {
delete collection[key];
}

if (context.plain[key].definitions[0].isFromSecurityScheme) {
delete context.plain[key];
}
});
}

function updateContextData (type, scheme, collection, context) {
var details = $scope.securitySchemes[scheme].describedBy || {};
var securityHeaders = details[type] || {};

if (securityHeaders) {
Object.keys(securityHeaders).map(function (key) {
if (!securityHeaders[key]) {
securityHeaders[key] = {
id: key,
type: 'string'
};
}

securityHeaders[key].displayName = key;
securityHeaders[key].isFromSecurityScheme = true;
collection[key] = [securityHeaders[key]];

context.plain[key] = {
definitions: [securityHeaders[key]],
selected: securityHeaders[key].type
};
context.values[key] = [undefined];
});
}
}
// function cleanSchemeMetadata(collection, context) {
// Object.keys(collection).map(function (key) {
// if (collection[key][0].isFromSecurityScheme) {
// delete collection[key];
// }

// if (context.plain[key].definitions[0].isFromSecurityScheme) {
// delete context.plain[key];
// }
// });
// }

// function updateContextData (type, scheme, collection, context) {
// var details = $scope.securitySchemes[scheme].describedBy || {};
// var securityHeaders = details[type] || {};

// if (securityHeaders) {
// Object.keys(securityHeaders).map(function (key) {
// if (!securityHeaders[key]) {
// securityHeaders[key] = {
// id: key,
// type: 'string'
// };
// }

// securityHeaders[key].displayName = key;
// securityHeaders[key].isFromSecurityScheme = true;
// collection[key] = [securityHeaders[key]];

// context.plain[key] = {
// definitions: [securityHeaders[key]],
// selected: securityHeaders[key].type
// };
// context.values[key] = [undefined];
// });
// }
// }

$scope.securitySchemeChanged = function (scheme) {
var info = scheme.split('|');
var type = info[0];
var name = info[1];
// var name = info[1];

$scope.currentSchemeType = type;

Expand Down
Loading

0 comments on commit e78908e

Please sign in to comment.