Re: set flickable content position

2012-11-05 Thread Reza Shah
Seems these codes fixed the problem. QImageItem { id: comicPicture anchors.centerIn: parent width: actualSize ? comicPicture.nativeWidth : viewContainer.width height: actualSize ? comicPicture.nativeHeight : viewContainer.height smooth: true fillMode: QImageItem.PreserveA

Re: set flickable content position

2012-11-05 Thread Reza Shah
Hi Marco, I replaced as your suggestion, it worked, but has little problem with the scrollbar position as in this: http://paste.opensuse.org/4552016. Is this fixable from my codes? Regards, Reza On Sun, Nov 4, 2012 at 9:27 PM, Marco Martin wrote: > > use viewContainer.contentWidth instead of > c

Re: set flickable content position

2012-11-04 Thread Marco Martin
On Sunday 04 November 2012, Reza Shah wrote: > Hi, > > In comic plasmoid there are some flags to define reading direction > like top to bottom or right to left. > > I'm trying to implement this, i tried several ways but my codes were > not working. > > Please see http://paste.kde.org/589778/ >