在iphone6上运行时,我们的网站上出现了amPieChart的传奇故事。适用于iphone6 +和其他产品,但在iphone6上它只是空的空间。
"legend": {
"divId": "piChartLegendDiv",
"position": "bottom",
"autoMargins": false,
"labelText": "[[title]]",
"valueWidth": "0",
"markerType": "circle",
}
移动设备:
/* ----------- iPhone 6 / 7 / 8 ----------- */
/* Portrait and Landscape */
@media only screen and (min-device-width: 375px) and (max-device-width: 667px) and (-webkit-min-device-pixel-ratio: 2) {
.volume-custom-footer {
display: flex;
.card-footer {
display: inline-block;
}
}
.hidePad {
display: none;
}
.opta-avatar {
height: 65px !important;
width: 65px !important;
}
}
/* Portrait */
@media only screen and (min-device-width: 375px) and (max-device-width: 667px) and (-webkit-min-device-pixel-ratio: 2) and (orientation: portrait) {
.card-body-portrait{
height: auto !important;
}
.your-team-avatar-rsp {
width: 75px !important;
height: 75px !important;
}
}
/* Landscape */
@media only screen and (min-device-width: 375px) and (max-device-width: 667px) and (-webkit-min-device-pixel-ratio: 2) and (orientation: landscape) {
}
我可以尝试让这项工作或至少更接近问题?
答案 0 :(得分:0)
在饼图本身的javascript部分中有一段:
validateFirstAndLastNameMatch() {
const prospect = this.prospectService.getProspect();
const firstName = prospect.prospectQuoteDto.firstName.toUpperCase().trim();
const lastName = prospect.prospectQuoteDto.lastName.toUpperCase().trim();
const orgLegalName = this.form.get('orgLegalName').value.trim().toUpperCase();
if (firstName === orgLegalName || lastName === orgLegalName || firstName + " " + lastName === orgLegalName) {
this.isMatchOnName = true;
} else {
this.isMatchOnName = false;
}
我显然只需要将enabled设置为true。现在,低分辨率的屏幕(iphone 5/6)即使被切断也会显示图例。