Skip to content

Commit e78908e

Browse files
committed
Fix IE11 rendering issues on W7
1 parent 6f9fd95 commit e78908e

File tree

5 files changed

+103
-130
lines changed

5 files changed

+103
-130
lines changed

dist/scripts/api-console.js

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1190,48 +1190,48 @@
11901190

11911191
$scope.context.forceRequest = false;
11921192

1193-
function cleanSchemeMetadata(collection, context) {
1194-
Object.keys(collection).map(function (key) {
1195-
if (collection[key][0].isFromSecurityScheme) {
1196-
delete collection[key];
1197-
}
1198-
1199-
if (context.plain[key].definitions[0].isFromSecurityScheme) {
1200-
delete context.plain[key];
1201-
}
1202-
});
1203-
}
1204-
1205-
function updateContextData (type, scheme, collection, context) {
1206-
var details = $scope.securitySchemes[scheme].describedBy || {};
1207-
var securityHeaders = details[type] || {};
1208-
1209-
if (securityHeaders) {
1210-
Object.keys(securityHeaders).map(function (key) {
1211-
if (!securityHeaders[key]) {
1212-
securityHeaders[key] = {
1213-
id: key,
1214-
type: 'string'
1215-
};
1216-
}
1217-
1218-
securityHeaders[key].displayName = key;
1219-
securityHeaders[key].isFromSecurityScheme = true;
1220-
collection[key] = [securityHeaders[key]];
1221-
1222-
context.plain[key] = {
1223-
definitions: [securityHeaders[key]],
1224-
selected: securityHeaders[key].type
1225-
};
1226-
context.values[key] = [undefined];
1227-
});
1228-
}
1229-
}
1193+
// function cleanSchemeMetadata(collection, context) {
1194+
// Object.keys(collection).map(function (key) {
1195+
// if (collection[key][0].isFromSecurityScheme) {
1196+
// delete collection[key];
1197+
// }
1198+
1199+
// if (context.plain[key].definitions[0].isFromSecurityScheme) {
1200+
// delete context.plain[key];
1201+
// }
1202+
// });
1203+
// }
1204+
1205+
// function updateContextData (type, scheme, collection, context) {
1206+
// var details = $scope.securitySchemes[scheme].describedBy || {};
1207+
// var securityHeaders = details[type] || {};
1208+
1209+
// if (securityHeaders) {
1210+
// Object.keys(securityHeaders).map(function (key) {
1211+
// if (!securityHeaders[key]) {
1212+
// securityHeaders[key] = {
1213+
// id: key,
1214+
// type: 'string'
1215+
// };
1216+
// }
1217+
1218+
// securityHeaders[key].displayName = key;
1219+
// securityHeaders[key].isFromSecurityScheme = true;
1220+
// collection[key] = [securityHeaders[key]];
1221+
1222+
// context.plain[key] = {
1223+
// definitions: [securityHeaders[key]],
1224+
// selected: securityHeaders[key].type
1225+
// };
1226+
// context.values[key] = [undefined];
1227+
// });
1228+
// }
1229+
// }
12301230

12311231
$scope.securitySchemeChanged = function (scheme) {
12321232
var info = scheme.split('|');
12331233
var type = info[0];
1234-
var name = info[1];
1234+
// var name = info[1];
12351235

12361236
$scope.currentSchemeType = type;
12371237

dist/styles/api-console-dark-theme.css

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1520,8 +1520,7 @@ th {
15201520
-ms-transform: perspective(45px) rotateX(30deg);
15211521
width: 108px;
15221522
position: absolute;
1523-
margin-left: -40px;
1524-
margin-left: 10px\9;
1523+
right: 0;
15251524
z-index: -1;
15261525
top: 0px;
15271526
}
@@ -1537,8 +1536,7 @@ th {
15371536
-ms-transform: perspective(45px) rotateX(30deg);
15381537
width: 108px;
15391538
position: absolute;
1540-
margin-left: -40px;
1541-
margin-left: 10px\9;
1539+
right: 0;
15421540
z-index: -1;
15431541
top: 0px;
15441542
}
@@ -1554,8 +1552,7 @@ th {
15541552
-ms-transform: perspective(45px) rotateX(30deg);
15551553
width: 108px;
15561554
position: absolute;
1557-
margin-left: -28px;
1558-
margin-left: 8px\9;
1555+
right: 0;
15591556
z-index: -1;
15601557
top: 0px;
15611558
}
@@ -1571,8 +1568,7 @@ th {
15711568
-ms-transform: perspective(45px) rotateX(30deg);
15721569
width: 108px;
15731570
position: absolute;
1574-
margin-left: -36px;
1575-
margin-left: 8px\9;
1571+
right: 0;
15761572
z-index: -1;
15771573
top: 0px;
15781574
}
@@ -1588,8 +1584,7 @@ th {
15881584
-ms-transform: perspective(45px) rotateX(30deg);
15891585
width: 108px;
15901586
position: absolute;
1591-
margin-left: -32px;
1592-
margin-left: 9px\9;
1587+
right: 0;
15931588
z-index: -1;
15941589
top: 0px;
15951590
}
@@ -1605,8 +1600,7 @@ th {
16051600
-ms-transform: perspective(45px) rotateX(30deg);
16061601
width: 108px;
16071602
position: absolute;
1608-
margin-left: -19px;
1609-
margin-left: 11px\9;
1603+
right: 0;
16101604
z-index: -1;
16111605
top: 0px;
16121606
}
@@ -1622,8 +1616,7 @@ th {
16221616
-ms-transform: perspective(45px) rotateX(30deg);
16231617
width: 108px;
16241618
position: absolute;
1625-
margin-left: -34px;
1626-
margin-left: 9px\9;
1619+
right: 0;
16271620
z-index: -1;
16281621
top: 0px;
16291622
}
@@ -1639,8 +1632,7 @@ th {
16391632
-ms-transform: perspective(45px) rotateX(30deg);
16401633
width: 108px;
16411634
position: absolute;
1642-
margin-left: -21px;
1643-
margin-left: 9px\9;
1635+
right: 0;
16441636
z-index: -1;
16451637
top: 0px;
16461638
}
@@ -1656,8 +1648,7 @@ th {
16561648
-ms-transform: perspective(45px) rotateX(30deg);
16571649
width: 108px;
16581650
position: absolute;
1659-
margin-left: -31px;
1660-
margin-left: 9px\9;
1651+
right: 0;
16611652
z-index: -1;
16621653
top: 0px;
16631654
}

dist/styles/api-console-light-theme.css

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1520,8 +1520,7 @@ th {
15201520
-ms-transform: perspective(45px) rotateX(30deg);
15211521
width: 108px;
15221522
position: absolute;
1523-
margin-left: -40px;
1524-
margin-left: 10px\9;
1523+
right: 0;
15251524
z-index: -1;
15261525
top: 0px;
15271526
}
@@ -1537,8 +1536,7 @@ th {
15371536
-ms-transform: perspective(45px) rotateX(30deg);
15381537
width: 108px;
15391538
position: absolute;
1540-
margin-left: -40px;
1541-
margin-left: 10px\9;
1539+
right: 0;
15421540
z-index: -1;
15431541
top: 0px;
15441542
}
@@ -1554,8 +1552,7 @@ th {
15541552
-ms-transform: perspective(45px) rotateX(30deg);
15551553
width: 108px;
15561554
position: absolute;
1557-
margin-left: -28px;
1558-
margin-left: 8px\9;
1555+
right: 0;
15591556
z-index: -1;
15601557
top: 0px;
15611558
}
@@ -1571,8 +1568,7 @@ th {
15711568
-ms-transform: perspective(45px) rotateX(30deg);
15721569
width: 108px;
15731570
position: absolute;
1574-
margin-left: -36px;
1575-
margin-left: 8px\9;
1571+
right: 0;
15761572
z-index: -1;
15771573
top: 0px;
15781574
}
@@ -1588,8 +1584,7 @@ th {
15881584
-ms-transform: perspective(45px) rotateX(30deg);
15891585
width: 108px;
15901586
position: absolute;
1591-
margin-left: -32px;
1592-
margin-left: 9px\9;
1587+
right: 0;
15931588
z-index: -1;
15941589
top: 0px;
15951590
}
@@ -1605,8 +1600,7 @@ th {
16051600
-ms-transform: perspective(45px) rotateX(30deg);
16061601
width: 108px;
16071602
position: absolute;
1608-
margin-left: -19px;
1609-
margin-left: 11px\9;
1603+
right: 0;
16101604
z-index: -1;
16111605
top: 0px;
16121606
}
@@ -1622,8 +1616,7 @@ th {
16221616
-ms-transform: perspective(45px) rotateX(30deg);
16231617
width: 108px;
16241618
position: absolute;
1625-
margin-left: -34px;
1626-
margin-left: 9px\9;
1619+
right: 0;
16271620
z-index: -1;
16281621
top: 0px;
16291622
}
@@ -1639,8 +1632,7 @@ th {
16391632
-ms-transform: perspective(45px) rotateX(30deg);
16401633
width: 108px;
16411634
position: absolute;
1642-
margin-left: -21px;
1643-
margin-left: 9px\9;
1635+
right: 0;
16441636
z-index: -1;
16451637
top: 0px;
16461638
}
@@ -1656,8 +1648,7 @@ th {
16561648
-ms-transform: perspective(45px) rotateX(30deg);
16571649
width: 108px;
16581650
position: absolute;
1659-
margin-left: -31px;
1660-
margin-left: 9px\9;
1651+
right: 0;
16611652
z-index: -1;
16621653
top: 0px;
16631654
}

src/app/directives/sidebar.js

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -270,48 +270,48 @@
270270

271271
$scope.context.forceRequest = false;
272272

273-
function cleanSchemeMetadata(collection, context) {
274-
Object.keys(collection).map(function (key) {
275-
if (collection[key][0].isFromSecurityScheme) {
276-
delete collection[key];
277-
}
278-
279-
if (context.plain[key].definitions[0].isFromSecurityScheme) {
280-
delete context.plain[key];
281-
}
282-
});
283-
}
284-
285-
function updateContextData (type, scheme, collection, context) {
286-
var details = $scope.securitySchemes[scheme].describedBy || {};
287-
var securityHeaders = details[type] || {};
288-
289-
if (securityHeaders) {
290-
Object.keys(securityHeaders).map(function (key) {
291-
if (!securityHeaders[key]) {
292-
securityHeaders[key] = {
293-
id: key,
294-
type: 'string'
295-
};
296-
}
297-
298-
securityHeaders[key].displayName = key;
299-
securityHeaders[key].isFromSecurityScheme = true;
300-
collection[key] = [securityHeaders[key]];
301-
302-
context.plain[key] = {
303-
definitions: [securityHeaders[key]],
304-
selected: securityHeaders[key].type
305-
};
306-
context.values[key] = [undefined];
307-
});
308-
}
309-
}
273+
// function cleanSchemeMetadata(collection, context) {
274+
// Object.keys(collection).map(function (key) {
275+
// if (collection[key][0].isFromSecurityScheme) {
276+
// delete collection[key];
277+
// }
278+
279+
// if (context.plain[key].definitions[0].isFromSecurityScheme) {
280+
// delete context.plain[key];
281+
// }
282+
// });
283+
// }
284+
285+
// function updateContextData (type, scheme, collection, context) {
286+
// var details = $scope.securitySchemes[scheme].describedBy || {};
287+
// var securityHeaders = details[type] || {};
288+
289+
// if (securityHeaders) {
290+
// Object.keys(securityHeaders).map(function (key) {
291+
// if (!securityHeaders[key]) {
292+
// securityHeaders[key] = {
293+
// id: key,
294+
// type: 'string'
295+
// };
296+
// }
297+
298+
// securityHeaders[key].displayName = key;
299+
// securityHeaders[key].isFromSecurityScheme = true;
300+
// collection[key] = [securityHeaders[key]];
301+
302+
// context.plain[key] = {
303+
// definitions: [securityHeaders[key]],
304+
// selected: securityHeaders[key].type
305+
// };
306+
// context.values[key] = [undefined];
307+
// });
308+
// }
309+
// }
310310

311311
$scope.securitySchemeChanged = function (scheme) {
312312
var info = scheme.split('|');
313313
var type = info[0];
314-
var name = info[1];
314+
// var name = info[1];
315315

316316
$scope.currentSchemeType = type;
317317

0 commit comments

Comments
 (0)