How can I make double bars align vertically over a variable in KaTeX? They are offset currently - katex

First post!
I am looking to figure out how to align multiple bars over variables in KaTeX.
Currently, they are offset:
double bars are offset
This is the partial code where I am trying to implement the double bar:
\$$\bar{\bar{X}}\$$

This looks like a bug in KaTeX. I've reported it.
Meanwhile, a workaround is to use $$\overline{\overline{X}}$$ which renders consistently at least:

Related

wibar wibox Align problem. Section doesn't align to the right anymore after changing configs back to normal

I'm trying to figure out what happened to my wibar.
I've been fiddling with my themes.lua config, but in the end I ended up leaving it as it was. Although the behavior hasn't returned back to what it was.
Starting point:
I use arcolinux, and I started with their default config for the theme "multicolor".
That means:
- 2 bars, 1#top 1#bottom
- tasklist + clock at the bottom bar
- taglist +widgets at the top
The normal behavior was that the tags aligned to the left side of the bar, and the widgets to the right.
That left a lot of empty space that I wanted to use dynamically for my tasklist, without the widgets going out of screen or getting covered by the tasklist.
Problem
I wanted to keep the widgets aligned to the right, and the tags to the left.
The problem is that I removed the tasklist from the top bar and now the widgets do not align to the right anymore.
Not even if I set them to align specifically to the right.
Imgur
What I tried
I have tried several wibox.align types, but none of them seemed to work.
I have also tried leaving only nil, between the two sections (which was the default solution)... but it still doesn't work.
I also tried creating a middle section set to wibox.align.flex.horizontal, like it was proposed in another question... but doesn't work either.
At some point I set a width of 50 to some variable related to the tasklist wibox (can't remember the name), but that variable is NOT there anymore. Double, triple and quadruple checked.
This is the link to the theme.lua as it is right now (default with some commented modifications).
The bars are right at the bottom of the file, just before it ends.
Question
How do I fix this weird behavior?
Everywhere I look it says my current config file shouldn't behave like this.
There is nothing left telling the right wibox to align to the left, and it ignores any config options asking it to align to the right.
s.mywibox:setup {
layout = wibox.layout.fixed.horizontal,
A fixed layout places its widgets just next to each other. In the default config, this is a wibox.layout.align.horizontal.

UITextView scrollRangeToVisible make range visible appear at the top

I am currently using UITextView. When I use scrollRangeToVisible it works but it brings the range to the bottom of the screen. How can I bring this range to the top of the screen. TLDR: UITextview method scrollRangeToVisible brings the characters of interest to bottom of view. I want it to come to top of view. How can I do this? Thank you
One approach is to:
find the bounding box of the range you want at the top
if it's below the current top line, add the height of the text view
then call .scrollRectToVisible()
You also need some error and bounds checking. I put together an extension you can try out if you wish: https://gist.github.com/DonMag/19daac863553c51725a56f0bc3296076

What will be the best UI component to render array items horizontally

I have an array of 'n' number of items. I am displaying them in a horizontal stack view, having fixed width of the superview.
Issue is, when the number of items are more, then the horizontal stack view is not displaying all of them.
I need to display all the items of an array in some UI placeholder horizontally with some decent amount of spacing in between. If the items are more they should come in the next line.
Will horizontal stack view be suitable for my requirement ? If not, then which UI component should I use? Example will be appreciated.
Adding to the answer of #DrMickeyLauer, If you want to make your UI look better with some eye catching animation while viewing the items then go for iCarousal.
Take a look at this URL for the sample implementation https://github.com/nicklockwood/iCarousel
UICollectionView is exactly what you're after. Use it with the standard UICollectionViewFlowLayout in horizontal mode.
It will then display all its elements filling "lines" from top to bottom, thus achieving a grid layout, which seems like what you want.

AS3: Increase size of scroll bar

This my be a really simple question but I have googled so hard looking for an answer. I have a datagrid which displays a long list of information. Its an iOS app so the input is touch and the scroll bar is tiny. How can I increase its size for easier use?
Thanks =)
Feathers is as3 solution to mobile ui : http://feathersui.com
These scrollbars can be targeted by DataGridInstance.verticalScrollBar and DataGridInstance.horizontalScrollBar. These are actually ScrollBar instances so you can use the .setSize() method or .width and .height setters to resize these.
However, the documentation indicates:
Note: If you use the setSize() method, you can change only the width of a horizontal scroll bar or the height of a vertical scroll bar. At the time of authoring you can set the height of a horizontal scroll bar or the width of a vertical scroll bar, but the values will be reset when the movie is published. Only the dimension of a scroll bar that corresponds to its length can be changed.
So I'm afraid it's not an option with the built-in component.
Use code like this:
dataGrid.scroller.verticalScrollBar.scaleX = 2;

ios - UITableView Section Index Titles - not many titles => spread out letters?

So I have a UITableView that I'm using with Section Index Titles.. but I'm not using the entire alphabet, only the individual letters required.
But the way it does this, is by even spacing each of the letters out like the two examples below:
So, is there anyway I can force it to just show them consecutively w/o so much spacing? Maybe adjust the frame or insets?
Thank you,
rnc505
I am pretty sure you are stuck with the even distribution across the height of the table view frame.
Adjusting the frame would not help as this would affect the frame of the entire table view.
If you want to create an index view with a custom height you will need to do so with a custom view.
This is solved by Apple in iOS7. From iOS7 the available index titles are centered in the center at the right. But they lowered the maximum number before showing dots a lot. Only half the entries fit now. I filed a radar for that one (15175436).

Resources