Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 07-23-2012, 06:07 AM   #16
Perkin
Guru
Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.
 
Perkin's Avatar
 
Posts: 657
Karma: 64171
Join Date: Sep 2010
Location: Kent, England, Sol 3, ZZ9 plural Z Alpha
Device: Sony PRS-300, Kobo Aura HD, iPad (Marvin)
@kovid, can't log-in to bug-tracker.
( Oops! Sorry, something just went wrong in Launchpad Login Service. )


For an quick example which shows the problem, in sigil, I created a new file, and all html of first page was :
Code:
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title></title>
  
<style type="text/css">
h1 {margin:5em 0;text-align:center;}
</style>
</head>

<body>
  <h1>Part One</h1>
</body>
</html>
When displaying as flow, the top-margin is respected and displayed as required vertical position, but with the paged mode, (without the override margins) the top-margin is ignored and the header is displayed at top of page, rather than the desired offset.

Here's the file that sigil created.
Attached Files
File Type: epub Margin_bug.epub (1.7 KB, 191 views)
Perkin is offline   Reply With Quote
Old 07-23-2012, 06:37 AM   #17
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,365
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Ah yes, this is caused by a limitation of the webkit column algorithm, for which there isn't an easy fix. Basically, the margin of the first block element bleeds out above the top of the columns. It therefore overlaps with the top margin of the page and gets reduced to zero visually. I dont see how this can be fixed short of fixing it in webkit, which is not something I want to spend the time to do. You could probably hack it by using padding instead of margin on your heading.
kovidgoyal is offline   Reply With Quote
Advert
Old 07-23-2012, 06:44 AM   #18
Perkin
Guru
Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.
 
Perkin's Avatar
 
Posts: 657
Karma: 64171
Join Date: Sep 2010
Location: Kent, England, Sol 3, ZZ9 plural Z Alpha
Device: Sony PRS-300, Kobo Aura HD, iPad (Marvin)
It is only a minor annoyance and not *that* much worth faffing around to find a workaround, but I'll try the padding and see where that leads.

Thanks.
Perkin is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cropping Double-Paged Scans for PDF Philosopher PDF 7 06-28-2013 04:43 AM
E-Book Viewer as standalone viewer Peter Swallow Library Management 3 05-15-2011 12:06 PM
Two-paged Tablet/eReader Combo - A Better Choice for Me? amybobamy Which one should I buy? 10 02-07-2011 12:50 AM
Reference Mode in calibre Viewer Lady Fitzgerald Calibre 2 10-12-2010 10:19 AM
E-book viewer not properly remembering book position sherman Calibre 9 02-20-2010 05:12 PM


All times are GMT -4. The time now is 10:17 PM.


MobileRead.com is a privately owned, operated and funded community.