There is a serious problem here: I'm working on an iOS application that should display an html page in a UIWebView through multiple columns using a layered CSS module.
I am adding the following CSS rule to the page to execute multi-column
padding: 0px; height: 850.000000px; -webkit-column-gap: 0px; -webkit-column-width: 620.000000px;
Then I need to find the absolute position on the screen for some text on the page. The problem is that any call to the offset () method from jQuery works fine, EXCLUDES the one that is in 2-column text.
For example, for a sentence that starts at the end of column 3 and ends in column 4, I get an offset with the left value set in the 3rd column, but the top position is set to 0, as if it were in the 4th column .
How can I get the offset () value with the correct left and top values. I mean, if the left value is on the third column, I want the top value also to be at the bottom of the third column.
Again I have this problem when a sentence works in two columns at the same time (starting from the end of the third column and ending in the fourth column)
I really don't know if I will be clear here, but any help would be really awesome.
thanks in advance
source share