code cleanup
[fanfix.git] / src / be / nikiroo / fanfix / library / WebLibraryServerHtml.java
index 93fec59a8a06eba81f51d5033c9021d45df5cee4..63c50c54df64c4ad5ed5810d030a5783e30ad12e 100644 (file)
@@ -644,7 +644,7 @@ abstract class WebLibraryServerHtml implements Runnable {
                                                } else if (zoomOption.equals("widthlimited")) {
                                                        // default
                                                } else if (zoomOption.equals("width")) {
-                                                       zoomStyle = "width: 100%;";
+                                                       zoomStyle = "max-width: 100%;";
                                                        disabledZoomWidthLimited = false;
                                                        disabledZoomWidth = true;
                                                } else if (zoomOption.equals("height")) {
@@ -759,7 +759,7 @@ abstract class WebLibraryServerHtml implements Runnable {
                                        NanoHTTPD.MIME_PLAINTEXT, "Error when processing request");
                }
        }
-
+       
        protected Response newInputStreamResponse(String mimeType, InputStream in) {
                if (in == null) {
                        return NanoHTTPD.newFixedLengthResponse(Status.NO_CONTENT, "",