[SailfishDevel] Non full-screen SilicaWebView
Raine Mäkeläinen
ravalt at gmail.com
Wed Dec 4 09:05:26 UTC 2013
Hi Artem,
First of all, thanks for the feedback regarding SilicaWebView. We try to
tackle them when going forward.
What comes to SilicaWebView we have an undocumented "header" property that
could be used in your case. As it is undocumented we cannot guarantee that
it stays like it is now.
"property Component header"
Page {
SilicaWebView {
anchors.fill: parent
url: "http://en.m.wikipedia.org"
header: SearchField {
width: parent.width
placeholderText: "Search"
EnterKey.onClicked: {
// Do search
}
}
PullDownMenu {
MenuItem {
text: "2nd"
}
MenuItem {
text: "1st"
}
}
}
}
Hope this helps,
-Raine
On Thu, Nov 28, 2013 at 1:32 AM, Artem Marchenko
<artem.marchenko at gmail.com>wrote:
> Hi all
>
> Not sure if it's a question, a bug report or a feature request :)
>
> **Context**
> I am making a Wikipedia app, go download the current version from store or
> build from https://github.com/amarchen/Wikipedia
>
> And UI makes a lot of sense [to me] if it has a Search bar always visible
> on the top of the page. No problem, I used to put there a SearchField and
> anchor WebView to below it. Until use of WebView was forbidden and we had
> to switch to SilicaWebView.
>
> **Problem**
> SilicaWebView seems to be engineered so that it is always full screen (as
> any other Flickable) and it is not behaving well if included into another
> Flickable.
>
> To be precise two Flickables seem to start fighting over touch control and
> scrolling sometimes works, sometimes doesn't :/
>
> **Possible solutions (as I see it)**
> 1. Downgrade SilicaWebView to be just a wrapper for a web view, don't mix
> Flickable responsibilities into WebView responsibilities. There are
> different responsibilities after all.
>
> 2. Or extract just a WebView wrapper into a new class
>
> 3. Or resolve the situation when SilicaWebView is not a full screen item,
> but lives inside another Flickable.
>
> What do you think?
>
> Best regards,
> Artem.
>
> --
> Artem Marchenko
> http://agilesoftwaredevelopment.com
> http://twitter.com/AgileArtem
>
> _______________________________________________
> SailfishOS.org Devel mailing list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20131204/0fd1e496/attachment.html>
More information about the Devel
mailing list