How to center a icon one line
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I want to align the edit button like you see in the following screenshots with the text. So it is one the same height. But my problem is it won't align center with the other text. I also tried to use FlexboxLayout
. But it just stays the same.
This is what I want
This is what I made
This the VueJs template
<template>
<Page class="confirmPage" actionBarHidden="true">
<DockLayout>
<FlexboxLayout dock="top" id="top">
<Button class="back fas btn btn-db" :text="'uf060 Route Details' | unescape" @tap="$navigateBack"></Button>
</FlexboxLayout>
<FlexboxLayout dock="bottom" id="bottom">
<Button class="confirm btn btn-b-db btn-r btn-t-w" text="BEVESTIG" @tap="getThePathDataBeforeContinuing"></Button>
</FlexboxLayout>
<StackLayout dock="center">
<GridLayout columns="2*, 2*, 1*" rows="*, *, *" class="routeDetails">
<Label row="0" col="0" class="centerIt" text="Ziekenhuis"></Label>
<Label row="0" col="1" :text="navigationData.hospital.name"></Label>
<Label row="0" col="2" class="fas btn btn-t-d btn-cr-sm" :text="'uf303' | unescape" @tap="onEditHospital"></Label>
<Label row="1" col="0" class="centerIt" text="Startpunt"></Label>
<Label row="1" col="1" :text="navigationData.startpoint.name"></Label>
<Label row="1" col="2" class="fas btn btn-t-d btn-cr-sm" :text="'uf303' | unescape" @tap="onEditStartpoint"></Label>
<Label row="2" col="0" class="centerIt" text="Bestemming"></Label>
<Label row="2" col="1" :text="navigationData.endpoint.name"></Label>
<Label row="2" col="2" class="fas btn btn-t-d btn-cr-sm" :text="'uf303' | unescape" @tap="onEditEndpoint"></Label>
<ActivityIndicator :busy="isBusy" width="100" height="100" class="activity-indicator"></ActivityIndicator>
</GridLayout>
</StackLayout>
</DockLayout>
</Page>
nativescript nativescript-vue
add a comment |
I want to align the edit button like you see in the following screenshots with the text. So it is one the same height. But my problem is it won't align center with the other text. I also tried to use FlexboxLayout
. But it just stays the same.
This is what I want
This is what I made
This the VueJs template
<template>
<Page class="confirmPage" actionBarHidden="true">
<DockLayout>
<FlexboxLayout dock="top" id="top">
<Button class="back fas btn btn-db" :text="'uf060 Route Details' | unescape" @tap="$navigateBack"></Button>
</FlexboxLayout>
<FlexboxLayout dock="bottom" id="bottom">
<Button class="confirm btn btn-b-db btn-r btn-t-w" text="BEVESTIG" @tap="getThePathDataBeforeContinuing"></Button>
</FlexboxLayout>
<StackLayout dock="center">
<GridLayout columns="2*, 2*, 1*" rows="*, *, *" class="routeDetails">
<Label row="0" col="0" class="centerIt" text="Ziekenhuis"></Label>
<Label row="0" col="1" :text="navigationData.hospital.name"></Label>
<Label row="0" col="2" class="fas btn btn-t-d btn-cr-sm" :text="'uf303' | unescape" @tap="onEditHospital"></Label>
<Label row="1" col="0" class="centerIt" text="Startpunt"></Label>
<Label row="1" col="1" :text="navigationData.startpoint.name"></Label>
<Label row="1" col="2" class="fas btn btn-t-d btn-cr-sm" :text="'uf303' | unescape" @tap="onEditStartpoint"></Label>
<Label row="2" col="0" class="centerIt" text="Bestemming"></Label>
<Label row="2" col="1" :text="navigationData.endpoint.name"></Label>
<Label row="2" col="2" class="fas btn btn-t-d btn-cr-sm" :text="'uf303' | unescape" @tap="onEditEndpoint"></Label>
<ActivityIndicator :busy="isBusy" width="100" height="100" class="activity-indicator"></ActivityIndicator>
</GridLayout>
</StackLayout>
</DockLayout>
</Page>
nativescript nativescript-vue
Use 3 GridLayouts inside your StackLayout (one for each row), then set theverticalAlignment
on GridLayout tocenter
.
– Manoj
Nov 15 '18 at 11:01
add a comment |
I want to align the edit button like you see in the following screenshots with the text. So it is one the same height. But my problem is it won't align center with the other text. I also tried to use FlexboxLayout
. But it just stays the same.
This is what I want
This is what I made
This the VueJs template
<template>
<Page class="confirmPage" actionBarHidden="true">
<DockLayout>
<FlexboxLayout dock="top" id="top">
<Button class="back fas btn btn-db" :text="'uf060 Route Details' | unescape" @tap="$navigateBack"></Button>
</FlexboxLayout>
<FlexboxLayout dock="bottom" id="bottom">
<Button class="confirm btn btn-b-db btn-r btn-t-w" text="BEVESTIG" @tap="getThePathDataBeforeContinuing"></Button>
</FlexboxLayout>
<StackLayout dock="center">
<GridLayout columns="2*, 2*, 1*" rows="*, *, *" class="routeDetails">
<Label row="0" col="0" class="centerIt" text="Ziekenhuis"></Label>
<Label row="0" col="1" :text="navigationData.hospital.name"></Label>
<Label row="0" col="2" class="fas btn btn-t-d btn-cr-sm" :text="'uf303' | unescape" @tap="onEditHospital"></Label>
<Label row="1" col="0" class="centerIt" text="Startpunt"></Label>
<Label row="1" col="1" :text="navigationData.startpoint.name"></Label>
<Label row="1" col="2" class="fas btn btn-t-d btn-cr-sm" :text="'uf303' | unescape" @tap="onEditStartpoint"></Label>
<Label row="2" col="0" class="centerIt" text="Bestemming"></Label>
<Label row="2" col="1" :text="navigationData.endpoint.name"></Label>
<Label row="2" col="2" class="fas btn btn-t-d btn-cr-sm" :text="'uf303' | unescape" @tap="onEditEndpoint"></Label>
<ActivityIndicator :busy="isBusy" width="100" height="100" class="activity-indicator"></ActivityIndicator>
</GridLayout>
</StackLayout>
</DockLayout>
</Page>
nativescript nativescript-vue
I want to align the edit button like you see in the following screenshots with the text. So it is one the same height. But my problem is it won't align center with the other text. I also tried to use FlexboxLayout
. But it just stays the same.
This is what I want
This is what I made
This the VueJs template
<template>
<Page class="confirmPage" actionBarHidden="true">
<DockLayout>
<FlexboxLayout dock="top" id="top">
<Button class="back fas btn btn-db" :text="'uf060 Route Details' | unescape" @tap="$navigateBack"></Button>
</FlexboxLayout>
<FlexboxLayout dock="bottom" id="bottom">
<Button class="confirm btn btn-b-db btn-r btn-t-w" text="BEVESTIG" @tap="getThePathDataBeforeContinuing"></Button>
</FlexboxLayout>
<StackLayout dock="center">
<GridLayout columns="2*, 2*, 1*" rows="*, *, *" class="routeDetails">
<Label row="0" col="0" class="centerIt" text="Ziekenhuis"></Label>
<Label row="0" col="1" :text="navigationData.hospital.name"></Label>
<Label row="0" col="2" class="fas btn btn-t-d btn-cr-sm" :text="'uf303' | unescape" @tap="onEditHospital"></Label>
<Label row="1" col="0" class="centerIt" text="Startpunt"></Label>
<Label row="1" col="1" :text="navigationData.startpoint.name"></Label>
<Label row="1" col="2" class="fas btn btn-t-d btn-cr-sm" :text="'uf303' | unescape" @tap="onEditStartpoint"></Label>
<Label row="2" col="0" class="centerIt" text="Bestemming"></Label>
<Label row="2" col="1" :text="navigationData.endpoint.name"></Label>
<Label row="2" col="2" class="fas btn btn-t-d btn-cr-sm" :text="'uf303' | unescape" @tap="onEditEndpoint"></Label>
<ActivityIndicator :busy="isBusy" width="100" height="100" class="activity-indicator"></ActivityIndicator>
</GridLayout>
</StackLayout>
</DockLayout>
</Page>
nativescript nativescript-vue
nativescript nativescript-vue
asked Nov 15 '18 at 10:49
StevenSteven
580626
580626
Use 3 GridLayouts inside your StackLayout (one for each row), then set theverticalAlignment
on GridLayout tocenter
.
– Manoj
Nov 15 '18 at 11:01
add a comment |
Use 3 GridLayouts inside your StackLayout (one for each row), then set theverticalAlignment
on GridLayout tocenter
.
– Manoj
Nov 15 '18 at 11:01
Use 3 GridLayouts inside your StackLayout (one for each row), then set the
verticalAlignment
on GridLayout to center
.– Manoj
Nov 15 '18 at 11:01
Use 3 GridLayouts inside your StackLayout (one for each row), then set the
verticalAlignment
on GridLayout to center
.– Manoj
Nov 15 '18 at 11:01
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53317741%2fhow-to-center-a-icon-one-line%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53317741%2fhow-to-center-a-icon-one-line%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Use 3 GridLayouts inside your StackLayout (one for each row), then set the
verticalAlignment
on GridLayout tocenter
.– Manoj
Nov 15 '18 at 11:01