Skip to content

Commit a13eef2

Browse files
committed
min font size 10
1 parent 1fda6d9 commit a13eef2

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

public/javascripts/DV/models/page.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ DV.model.Pages.prototype = {
8787

8888
this.viewer.elements.sets.width(this.zoomLevel);
8989
this.viewer.elements.collection.css({width : this.width + padding });
90-
this.viewer.$('.DV-textContents').css({'font-size' : this.zoomLevel * 0.02 + 'px'});
90+
var minFontSize = 10;
91+
var fontSize = Math.max(minFontSize, this.zoomLevel * 0.02);
92+
this.viewer.$('.DV-textContents').css({'font-size' : fontSize + 'px'});
9193
},
9294

9395
// Update the height for a page, when its real image has loaded.

public/stylesheets/DV/components/minimode.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@
3131
.DV-mini .DV-textPage {
3232
margin-left: 7px;
3333
}
34+
.DV-mini .DV-textContents {
35+
margin: 20px;
36+
}
3437

3538
.DV-autoZoom .p0,
3639
.DV-autoZoom .p1,
@@ -76,6 +79,10 @@
7679
padding-left: 0px;
7780
}
7881

82+
.DV-mini .DV-textCurrentPage {
83+
display: none;
84+
}
85+
7986
/* Annotations ---------------------------------------*/
8087

8188
.DV-mini .DV-annotationTab {

0 commit comments

Comments
 (0)