07-17-2018
Scrollbars and Bootstrap Tables
Making some progress using CSS from Bootstrap; changing table classes to the Bootstrap "table" class and wrapping those tables in a div with a scroll bar.
So, the good news is that now each post with large blocks of code that exceeds the width of the screen will have a scrollbar; but the bad news is that this scrollbar currently works for the entire post and not for just the code in the code taggies.
However, it is a start.
Bootstrap is a big help!
10 More Discussions You Might Find Interesting
1. AIX
I'm trying to build gcc-3.4.4 on AIX 5.3, and I get the following error in phase 2. I suspect that the problem is related to AIX's "as" assembler somehow, but from what I understand, the binutils assembler is not useable on AIX 5.1 or later. Any ideas?
checking for powl declaration... yes... (2 Replies)
Discussion started by: Duggerdee
2 Replies
2. Shell Programming and Scripting
Hi !
Anyone can tell me how to controll two listboxes with only one scrollbar in TCL? I have tried the following but it didn't work:
listbox .listw.list -width 25 -height 25 -yscrollcommand {.listw.scroll set}
listbox .listw.list2 -width 25 -height 25 -yscrollcommand {.listw.scroll set}... (0 Replies)
Discussion started by: cordobapab
0 Replies
3. Shell Programming and Scripting
I am trying to transpose tables listed in the format into format. Any help would be greatly appreciated.
Input:
test_data_1
1 2 90%
4 3 91%
5 4 90%
6 5 90%
9 6 90%
test_data_2
3 5 92%
5 4 92%
7 3 93%
9 2 92%
1 1 92%
...
Output:... (7 Replies)
Discussion started by: justthisguy
7 Replies
4. Solaris
Exactly how can I redirect bootstrap data generated by Networker to a file? The company's policy is to have this electronically saved remotely. The idea is to have the bootstrap info saved to a file and then use rsync to move that file to a remote server. So instead of sending it to a printer... (0 Replies)
Discussion started by: Jshwon
0 Replies
5. UNIX for Advanced & Expert Users
hi!
my computer is...
system: Digital Personal Workstation 433a
Processor: Digital Alpha 21164, 433 MHz
Memory: 64 MB
Operating System: Digital Unix Console(SRM), Digital Unix V4.0D
That computer is used for radar display. Application run on Unix. I have a problem now. I can't boot dkc0... (2 Replies)
Discussion started by: akz
2 Replies
6. What is on Your Mind?
Hi,
Well, I changed the descriptions for threads to use Bootstrap's UI and here is the results (make sure you set your YT setting for 1080 HD):
New Tooltip for UNIX.COM Using Bootstrap - YouTube
Here is the simple CSS I'm using for the fonts and colors:
.tooltip-inner {
... (0 Replies)
Discussion started by: Neo
0 Replies
7. What is on Your Mind?
See attached screen movie that demos the revised tooltips which includes thread previews, or double click on the YT video below to go to YT and view in full screen mode, etc:
HkObCAYg6LI (0 Replies)
Discussion started by: Neo
0 Replies
8. War Stories
YAY!
Finally, seems like forever, I added this CSS to the posts (postbit) for table columns and scrollbars work still do not work for code tags and text inside posts.
<style>
td {
max-width:200px;
overflow: auto;
white-space: nowrap;
}
</style>
YAY...
Now scollbars... (3 Replies)
Discussion started by: Neo
3 Replies
9. Web Development
Added some Bootstrap to our lists (first draft subject to change) with PHP changes to the functions_bbcode.php:
if ($listtype)
{
$outstuff = '<ol class="list-group" style="list-style-type: ' . $listtype . '">' . $output . '</ol>';
... (0 Replies)
Discussion started by: Neo
0 Replies
10. Web Development
I changed the CSS and Javascript in the "Advanced Editor" to clean it up. This is also the editor seen in "New Thread" and "New Reply". Basically I got rid of the mouseover style changes which were messed up due to vB legacy JS code from a decade ago.
While doing this change, I then completed... (8 Replies)
Discussion started by: Neo
8 Replies
LEARN ABOUT MOJAVE
itkwidget
Widget(n) [incr Tk] Widget(n)
__________________________________________________________________________________________________________________________________________________
NAME
Widget - base class for mega-widgets within a frame
INHERITANCE
itk::Archetype <- itk::Widget
STANDARD OPTIONS
background cursor
See the "options" manual entry for details on the standard options.
_________________________________________________________________
DESCRIPTION
The Widget class inherits everything from the Archetype class, and adds a Tk frame called the "hull" component to represent the body of the
mega-widget. The window class name for the hull is set to the most-specific class name for the mega-widget. The protected variable
itk_interior contains the window path name for the "hull" component. Derived classes specialize this widget by packing other widget compo-
nents into the hull.
Since the hull for the Widget class is implemented with a Tk frame, mega-widgets in the Widget class can be packed into other frames and
toplevels.
COMPONENTS
Name: hull
Class: Frame
The "hull" component acts as the body for the entire mega-widget. Other components are packed into the hull to further specialize
the widget.
EXAMPLE
The following example implements a simple TextDisplay mega-widget. It creates a read-only display of text with a text widget and a scroll-
bar.
option add *TextDisplay.wrap none widgetDefault
option add *TextDisplay.textBackground ivory widgetDefault
option add *TextDisplay.width 40 widgetDefault
option add *TextDisplay.height 10 widgetDefault
itcl::class TextDisplay {
inherit itk::Widget
constructor {args} {
itk_component add text {
text $itk_interior.info -state disabled -yscrollcommand [code $itk_interior.sbar set]
} {
usual
keep -tabs -wrap -width -height
rename -background -textbackground textBackground Background
}
pack $itk_component(text) -side left -expand yes -fill both
itk_component add scrollbar {
scrollbar $itk_interior.sbar -command [code $itk_interior.info yview]
}
pack $itk_component(scrollbar) -side right -fill y
eval itk_initialize $args
}
public method display {info}
public method append {info}
}
itcl::body TextDisplay::display {info} {
$itk_component(text) configure -state normal
$itk_component(text) delete 1.0 end
$itk_component(text) insert 1.0 $info
$itk_component(text) configure -state disabled
}
itcl::body TextDisplay::append {info} {
$itk_component(text) configure -state normal
$itk_component(text) insert end $info
$itk_component(text) configure -state disabled
}
itk::usual TextDisplay {
keep -background -cursor -foreground -font
keep -activebackground -activerelief
keep -highlightcolor -highlightthickness
keep -insertbackground -insertborderwidth -insertwidth
keep -insertontime -insertofftime
keep -selectbackground -selectborderwidth -selectforeground
keep -textbackground -troughcolor
}
#
# EXAMPLE: Display the /etc/passwd file
#
TextDisplay .file -background red
pack .file
.file display [exec cat /etc/passwd]
KEYWORDS
itk, Archetype, Widget, mega-widget
itk 3.0 Widget(n)