Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
my-bib-app
MyBibApp
Commits
c4d52fc2
Commit
c4d52fc2
authored
Mar 19, 2019
by
laurent l
Browse files
ios: fix webview layout
parent
21f48a9d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
8 deletions
+15
-8
MyBibApp/app/app.scss
MyBibApp/app/app.scss
+3
-3
MyBibApp/app/controllers/library.ts
MyBibApp/app/controllers/library.ts
+7
-0
MyBibApp/app/views/library/loans.xml
MyBibApp/app/views/library/loans.xml
+1
-1
MyBibApp/app/views/library/website.xml
MyBibApp/app/views/library/website.xml
+4
-4
No files found.
MyBibApp/app/app.scss
View file @
c4d52fc2
...
...
@@ -107,9 +107,9 @@ Page {
margin
:
0
30dip
;
}
#oauth_authorize
ActivityIndicator
{
width
:
2
5dip
;
height
:
2
5dip
;
ActivityIndicator
{
width
:
5
0
dip
;
height
:
5
0
dip
;
}
#sideDrawerContent
{
...
...
MyBibApp/app/controllers/library.ts
View file @
c4d52fc2
...
...
@@ -347,9 +347,16 @@ export class LibraryController extends Controller {
public
onWebsitePageLoaded
(
args
)
{
let
webview
=
args
.
object
.
getViewById
(
"
webView
"
);
let
activity_indicator
=
args
.
object
.
getViewById
(
"
activity-indicator
"
);
new
Cookies
().
syncHttpToWebView
(
webview
).
then
(()
=>
{
webview
.
src
=
this
.
get
(
'
website_url
'
);
})
activity_indicator
.
busy
=
true
;
webview
.
on
(
WebView
.
loadFinishedEvent
,
()
=>
{
activity_indicator
.
busy
=
false
;
});
}
...
...
MyBibApp/app/views/library/loans.xml
View file @
c4d52fc2
...
...
@@ -45,5 +45,5 @@
</lv:RadListView.itemTemplate>
</lv:RadListView>
<Label
visibility=
"{{ loans.length || busy == 'on' ? 'collapsed' : 'visible' }}"
style=
"text-align: center; height: 100dip"
text=
"{{ L('no_loans') }}"
col=
"0"
row=
"0"
/>
<ActivityIndicator
style=
"height:50dip; width:50dip"
id=
"activity-indicator"
col=
"0"
row=
"0"
busy=
"{{ busy == 'on' ? 'true' : 'false' }}"
color=
"orange"
/>
<ActivityIndicator
id=
"activity-indicator"
col=
"0"
row=
"0"
busy=
"{{ busy == 'on' ? 'true' : 'false' }}"
color=
"orange"
/>
</GridLayout>
MyBibApp/app/views/library/website.xml
View file @
c4d52fc2
...
...
@@ -17,10 +17,10 @@
</nsDrawer:RadSideDrawer.drawerContent>
<nsDrawer:RadSideDrawer.mainContent>
<
Stack
Layout>
<WebView
id=
"webView"
height=
"100%"
/>
<ActivityIndicator
busy=
"true"
/>
</
Stack
Layout>
<
Grid
Layout
columns=
"*"
rows=
"*"
iosOverflowSafeArea=
"false"
>
<WebView
id=
"webView"
height=
"100%"
col=
"0"
row=
"0"
/>
<ActivityIndicator
id=
"activity-indicator"
color=
"orange"
col=
"0"
row=
"0"
/>
</
Grid
Layout>
>
</nsDrawer:RadSideDrawer.mainContent>
</nsDrawer:RadSideDrawer>
</Page>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment