View Single Post
Old 02-23-2013, 05:12 PM   #48
st_albert
Guru
st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'
 
Posts: 698
Karma: 150000
Join Date: Feb 2010
Device: none
Quote:
Originally Posted by mtrahan View Post
Hi,

I don't know what changed in this version to cause this situation, but now when I open some books, the cover image is displayed differently. For example, I do something like this in the cover.xhtml file:

Code:
<head>
  <title>Cover</title>
<style type="text/css">
@page {padding: 0pt; margin:0pt}
            body { text-align: center; padding:0pt; margin: 0pt; }
            div { margin: 0pt; padding: 0pt; }

  img.sgc-1 {height: 100%}
</style>
</head>

<body>
  <div><img alt="Cover" class="sgc-1" src="../Images/cover.jpg" /></div>
</body>
And the resulting image is compressed horizontally (or vertically stretched). In the previous versions, this wasn't happening. Is it a bug or it's me who's doing something wrong?

I'm using 'height: 100%' when the cover images are big. I thought this wasn't suppose to affect the verical/horizontal ratio.

Thanks in advance for your help—and great job on this new version!

Michael
If I understand correctly, you are seeing the Qt5 bug discussed in this thread.
st_albert is online now