Controlgroup in panel seems not working [closed] - jquery-mobile

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 8 years ago.
Improve this question
I'm developing an app with JQM. I want to use a controgroup in a panel as menu but it is not working a I expect...
See the jsfiddle here > click on the gear button at left top: http://jsfiddle.net/japx5xxh/
How to delete margin on the top and bottom of the buttons?
HTML:
<div data-role="panel" id="home-options" data-display="overlay" class="ui-mini ui-panel-inner">
<div data-role="control group">
No icon
    Left
    Right
</div>
</div>
CSS:
.ui-panel-inner {
padding: 0 !important;
}
Thank you a lot!

As said by Omar, the problem was coming from that were added by my text editor for an unknown reason between the control group elements.

Related

How to position an element on the Y-Axis based on an Item [SAPUI5] [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
as the title states, i do have two elements within one HBox, a link and a button, with the problem that i want the link to be displayed in the the same line-height as the middle of the button.
Code:
<HBox>
<Link text="Hallo Welt"/>
<Button
icon="sap-icon://warning2" class="sapUiSmallMarginBegin"/>
</HBox>
Where the link is right now:
Where the link should be:
Question: How to position link in the middle of Button?
It's not really intuitive but proper samples for HBox can be found in FlexBox.
See the sample page for different alignments.
You probably want
<HBox alignItems="Center" justifyContent="Start">
But as #Boghyon wrote in his comment there might be better approaches if your use case is different.

Scrolling over input tag cause a ‘sticky’ scrolling [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
UPDATE FOR SOLVE:
I'm using bootstrap and it has col classes. col class has position:relative property. In my case col classes depeneds a div which has not any position css property. So when I overrided col class position property:relative with position:inherit, my problem has solved
I have a web page has some input elements at the end.
When I open it in IPhone version (5,5s,6,6s) I come over these input elements I got a sticky scrolling.
I'm not sure if I used the right expression but I mean I can not scroll more over up or down.
I'm using HTML5

jQuery Mobile best practice - panel button, back button, or both [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I'm creating a mobile app targeted for iPad Mini. I have a panel that slides out from the left with navigation menu. I also have the need for a back button in the header. What is the best practice for buttons in the header? I need a back button at certain times in the flow of the application and I also need the button that opens the panel in the header too.
Thanks for your advice.
I forgot to mention the right side of header has a button that loads barcode scanner. So, I'm left with left side of header to compete for 2 buttons.
Header can accommodate two buttons on right and left, ui-btn-left and ui-btn-right respectively.
However, you can place more than two buttons in header by using controlgroup widget with data-type="horizontal" attribute.
<div data-role="header">
<!-- right-hand button -->
Bcode
<!-- if you don't want to use title,
replace it with <span class="ui-title"></span> -->
<h1>Header</h1>
<!-- left-hand button -->
<div data-role="controlgroup" data-type="horizontal" class="ui-btn-left">
Panel
Back
</div>
</div>
Demo jQM <= 1.3
Demo jQM >= 1.4

Using "check" icon in a table cell [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
In a particular table cell, I dont want text, I want the nice "check" icon instead. I've tried all kinds of crazy elements and tried to specify data-icon but no luck. I'm sure this is easy.
Here is a demo of using the built in jQM icons in a table cell: http://jsfiddle.net/ezanker/Cj5rg/1/
Just use the existing CSS classes that set the background to the included images:
<span class="ui-btn-inline ui-btn-icon-notext"><span class="ui-icon ui-icon-check ui-icon-shadow"></span></span>

What is causing this shift in layout? CSS? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 4 years ago.
Improve this question
I have been following the RoR tutorial and noticed that my layout appears to shift while moving between nav links. Rather than link to my actual project, you can see what I am talking about by looking at the author's personal homepage: www.michaelhartl.com/ If you move between the nav links at the top, the whole page appears to shift. I am guessing that this has nothing to do with RoR, and more with CSS.
Some pages have scrollbars, some others don't. When the scrollbar appears it shift it left some pixels. (If this is what you mean.)
As Sotiris said, some pages have scrollbars and some don't, due to the amount of content on the page. You can force scrollbars to appear on every page and prevent this apparent 'shift' by putting the following in your CSS file:
html { overflow-y: scroll; }

Resources