Skip to content

Commit 0629ff4

Browse files
恢复弹窗内容超出容器问题 review by luoxiao
1 parent a1f5030 commit 0629ff4

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

examples/mapboxgl/01_mapService.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
innerHTML += "Bounds:" + JSON.stringify(result.bounds) + "<br>";
6868
new mapboxgl.Popup({ closeOnClick: false })
6969
.setLngLat([-96, 37.8])
70-
.setHTML(innerHTML + "</br>")
70+
.setHTML("<div style='word-wrap: break-word;'>" + innerHTML + "</br>"+ "</div>")
7171
.addTo(map);
7272
}
7373

examples/mapboxgl/config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -351,11 +351,11 @@ var exampleConfig = {
351351
},
352352
webPrinting: {
353353
name: 'Web 打印',
354-
name_en: 'Web Printing',
354+
name_en: 'Web printing',
355355
content: [
356356
{
357357
name: 'Web 地图打印',
358-
name_en: 'Web Map Print',
358+
name_en: 'web map print',
359359
version: '10.1.0',
360360
thumbnail: 'webPrintingJob.png',
361361
fileName: 'webPrintingJob'
@@ -364,7 +364,7 @@ var exampleConfig = {
364364
},
365365
processingService: {
366366
name: '分布式分析',
367-
name_en: 'Distributed analysis services',
367+
name_en: 'Distributed analysis service',
368368
content: [
369369
{
370370
name: '密度分析',
@@ -452,7 +452,7 @@ var exampleConfig = {
452452
},
453453
image: {
454454
name: "影像服务",
455-
name_en: "Image Service",
455+
name_en: "Image service",
456456
content: [
457457
{
458458
name: "影像服务",

examples/mapboxgl/imageService.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@
164164
color: rgba(0, 0, 0, 0.65);
165165
}
166166
.modal-dialog {
167-
width: 800px !important;
167+
width: 1100px !important;
168168
top: 50px;
169169
}
170170
.modal-body {
@@ -192,6 +192,13 @@
192192
border-right: 1px solid #e8e8e8;
193193
font-size: 14px;
194194
line-height: 1.5;
195+
word-wrap: break-word;
196+
}
197+
.modal-content-row .modal-content-item-content:nth-child(2){
198+
width: 193px;
199+
}
200+
.modal-content-row .modal-content-item-content:nth-child(4){
201+
width: 479px;
195202
}
196203
</style>
197204
</head>

0 commit comments

Comments
 (0)