Expanding Cells Problem
Hi,
Can you tell me why these table cells on the left are spacing
like this please?
link removed
They are supposed to look like this -
link removed
This problem arises quite often. Is there a way to lock the
table?
Thank you for your time.
Ray
On Thu, 25 Oct 2007 19:25:53 +0000 (UTC), "Ray Dar"
<[email protected]> wrote:
> Can you tell me why these table cells on the left are
spacing like this please?
>
>
http://www.myastrospace.com/vidcliplist1.htm
http://apptools.com/rants/spans.php
Gary
Similar Messages
-
I have been working all morning to add a horizontal spry menu
bar to the menu_bar section of the Mother Earth Template (
http://www.webshapes.org/template/details/id/200702247034127204)
from Webshapes (
http://www.webshapes.org/)
Anyway, I had to do some crazy positioning to get the
submenus to lign up with the menus and now the submenus will not
display in IE because of an 'expanding box problem' All of the
problems are associated with either my "ul.MenuBarHorizontal ul" or
my "ul.MenuBarHorizontal ul ul"
Can anyone help me with this? I am a beginner with
Dreamweaver and have been having a lot of troubles with it.
Thanks.Hello Tom, Is it a template related error message?
I would suggest you to use percentages when setting the width
and height values. -
Spry Vertical Submenu - Expanding Box Problem, white background
Hello everyone. I've recently incorporated a Spry Vertical Menu on my site for the first time and I'm experiencing problems with the submenu in IE7. (Things look fine in FF, Safari, and Opera.) A white box appears behind the text area (the "bios" and "contact us" links). And....In IE6 the entire menu bar becomes a horizontal mess.
I've come to learn that this is called an Expanding Box Problem but I don't know how to fix it. Perhaps this is seperate issue from the white panel issue altogether. I dunno. Can anyone be of assistance? I've been trying to solve this problem for days.
http://www.exposedproductionsnyc.com
Below is the CSS:
/* The outermost container of the Menu Bar, a fixed width box with no margin or padding */
ul.MenuBarVertical
list-style-type: none;
font-size: 100%;
cursor: default;
width: 8em;
padding-top: 0px;
padding-right: 0;
padding-bottom: 0;
padding-left: 31.5px;
background-color: #000;
margin-top: 0;
margin-right: 0;
margin-bottom: 0;
margin-left: 0;
/* Set the active Menu Bar with this class, currently setting z-index to accomodate IE rendering bug: http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html */
ul.MenuBarActive
z-index: 1000;
/* Menu item containers, position children relative to this container and are same fixed width as parent */
ul.MenuBarVertical li
margin: 0;
padding: 0;
list-style-type: none;
font-size: 100%;
position: relative;
text-align: left;
cursor: pointer;
width: 160px;
background-color: #000;
/* Submenus should appear slightly overlapping to the right (95%) and up (-5%) with a higher z-index, but they are initially off the left side of the screen (-1000em) */
ul.MenuBarVertical ul
margin: -5% 0 0 95%;
padding: 0;
list-style-type: none;
font-size: 100%;
position: absolute;
z-index: 1020;
cursor: default;
width: 8.2em;
left: -1000em;
top: 0;
/* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen */
ul.MenuBarVertical ul.MenuBarSubmenuVisible
left: 0;
/* Menu item containers are same fixed width as parent */
ul.MenuBarVertical ul li
width: 100px;
padding-left: 29px;
padding-top: 3px;
margin-top: 1px;
DESIGN INFORMATION: describes color scheme, borders, fonts
/* Outermost menu container has borders on all sides */
ul.MenuBarVertical
/* Submenu containers have borders on all sides */
/*ul.MenuBarVertical ul
border: 1px none #CCC;
/* Menu items are a light gray block with padding and no text decoration */
ul.MenuBarVertical a
display: block;
cursor: pointer;
background-color: #000;
padding: 0.5em 0em;
color: #FFF;
text-decoration: none;
/* Menu items that have mouse over or focus have a blue background and white text */
ul.MenuBarVertical a:hover, ul.MenuBarVertical a:focus
background-color: #000;
color: #6CC3D7;
/* Menu items that are open with submenus are set to MenuBarItemHover with a blue background and white text */
ul.MenuBarVertical a.MenuBarItemHover, ul.MenuBarVertical a.MenuBarItemSubmenuHover, ul.MenuBarVertical a.MenuBarSubmenuVisible
background-color: #000;
color: #6CC3D7;
SUBMENU INDICATION: styles if there is a submenu under a given menu item
/* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
ul.MenuBarVertical a.MenuBarItemSubmenu
background-image: url(SpryMenuBarRight.gif);
background-repeat: no-repeat;
background-position: 95% 50%;
background-color: transparent;
/* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
ul.MenuBarVertical a.MenuBarItemSubmenuHover
background-image: url(SpryMenuBarRightHover.gif);
background-repeat: no-repeat;
background-position: 95% 50%;
background-color: transparent;
BROWSER HACKS: the hacks below should not be changed unless you are an expert
/* HACK FOR IE: to make sure the sub menus show above form controls, we underlay each submenu with an iframe */
ul.MenuBarVertical iframe
position: absolute;
z-index: 1010;
filter:alpha(opacity:0.1);
/* HACK FOR IE: to stabilize appearance of menu items; the slash in float is to keep IE 5.0 from parsing */
@media screen, projection
ul.MenuBarVertical li.MenuBarItemIE
display: inline;
f\loat: left;Long answer = z-index
http://www.smashingmagazine.com/2009/09/15/the-z-index-css-property-a-comprehensive-look/
Nancy O. -
Lightroom 5.3 does not show image info tooltips in grid view expanded cells
In my copy of Lightroom 5.3, image info tooltips do not show in the grid view expanded cells even though that option is activated in view options. Is this an issue with Lightroom 5.3? (Note: Image info tooltips in grid view compact cells and the filmstrip do display, however.)
I don't think it ever has. I've just checked back through all versions from Lightroom 2, and don't get the same information in Expanded Cell view as I do in Compact Cell view.
So not a specific issue with LR5.3, more likely either it's "as designed" or one of those very long-standing bugs that haven't been fixed. -
Expanding box problem in some browsers
My bottom three dividers are having an expanding box problem in some browers. Any idea how to fix? This is my first website and I am clueless.....
www.privateinsurancebrokers.com
Source Code:
V <div id="container">
<div id="main_image"><img src="Images/ThreeArch.jpg" width="960" height="400" alt="Kenneth G. Harris Insurance Agency" /></div>
<div id="left_colum">
<strong><a href="employeebenefits.html"><img src="Images/Website_EmployeeBenefits.jpg" width="310" height="127" alt="Employee Benefits Orange County" /></a>Employee Benefits
</strong><br />
Since 1972, Kenneth G. Harris Insurance Agency has advocated for our clients in the process of securing the highest value employee benefit program. <a href="employeebenefits.html" target="_new">Learn More»</a> </div>
<div id="center_column"><strong><a href="HealthInsurance.html"><img src="Images/Family and Individual Insurance.jpg" alt="Family and Individual Insurance Services" width="310" height="127" align="top" /></a>Individual & Family Insurance Services
</strong>Kenneth G. Harris Insurance Agency will work with our insurance and financial partners to assist you with all aspects of your personal insurance needs. <a href="individualinsurance.html" target="_new">Learn More»</a></div>
<div id="right_column"><a href="news.html"><img src="Images/blog.jpg" width="310" height="127" alt="Health and Life Insurance News Orange County" /></a>
<strong>Information</strong> <br />
Keep up-to-date with the latest employee benefits and private insurance news. Let us serve as your resource for health care reform news and<a href="article2.html" title="Kenneth G. Harris Insurance Agency Group Health and Individual Insurance" target="_new"> more»</a></div>
</div>Your CSS Layout has a provision for clearing floats but I don't see it in your HTML markup.
Insert a float clearing <br> <p> or <hr> right above your footer division like so:
<hr class="clearfloat" />
<div class="footer">
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/
http://twitter.com/altweb -
[CS2/CS3 JS] Merged Cell Problem...
Hi,
Below is a part of my script that has been giving me a problem with merged cells:
if (myTable.cells.item(h).bottomEdgeStrokeWeight > 0.5) {
myTable.cells.item(h).bottomEdgeStrokeWeight = 2;
myTable.cells.item(h).bottomEdgeStrokeType = "Thick - Thick";}
Everytime the script passes on a merged cell, it quits and it only do changes on the first cell of the merged cells. Once I run my script again, it quits with error because the first cell of the merged cells now has a different stroke weight than the rest of the merged cells.
Is there a way to apply stroke on merged cells? And what is the parameter for UNMERGE? Thanks.Hi Joaquin,
Here are a few examples – hope it helps.
Kasyan
// lets assume myTable has 4 rows and 4 columns
myTable = app.activeDocument.stories[0].tables[0];
myStartCell = myTable.cells.item("0:0"); // cell in the 1st column and 1st row
myEndCell = myTable.cells.item("0:3"); // cell in the 1st column and 4th row
myStartCell.merge(myEndCell);
// now merged cells have become the cell in the 1st column and 1st row
myMergedCell = myTable.cells.item("0:0");
myMergedCell.unmerge();
// merge/unmerge the last row
myTable.cells.item("0:3").merge(myTable.rows.item(-1));
myTable.cells.item("0:3").unmerge();
// merge/unmerge the last column
myTable.columns.item(-1).cells.item(0).merge(myTable.columns.item(-1).cells.item(-1));
myTable.columns.item(-1).cells.item(0).unmerge(); -
JTree with XML content expand/collapse problem
Hello all,
I'm having this very weird problem with a JTree I use to display the contents of an XML file. I use the DOM parser (and not JDOM since I want the application to run as an applet as well, and don't want to have any external libraries for the user to download) and have a custom TreeModel and TreeNode implementations to wrap the DOM nodes so that they are displayed by the JTree.
I have also added a popup menu in the tree, for the user to be able to expand/collapse all nodes under the selected one (i.e. a recursive method).
When expandAll is run, everything works fine and the children of the selected node are expanded (and their children and so on).
However, after the expansion when I run the collapseAll function, even though the selected node collapses, when I re-expand it (manually not by expandAll) all of it's children are still fully open! Even if I collapse sub-elements of the node manually and then collapse this node and re-expand it, it "forgets" the state of it's children and shows them fully expanded.
In other words once I use expandAll no matter what I do, the children of this node will be expanded (once I close it and re-open it).
Also after running expandAll the behaviour(!) of the expanded nodes change: i have tree.setToggleClickCount(1); but on the expanded nodes I need to double-click to collapse them.
I believe the problem is related to my implementations of TreeModel and TreeNode but after many-many hours of trying to figure out what's happening I'm desperate... Please help!
Here's my code:
public class XMLTreeNode implements TreeNode
//This class wraps a DOM node
org.w3c.dom.Node domNode;
protected boolean allowChildren;
protected Vector children;
//compressed view (#text).
private static boolean compress = true;
// An array of names for DOM node-types
// (Array indexes = nodeType() values.)
static final String[] typeName = {
"none",
"Element",
"Attr",
"Text",
"CDATA",
"EntityRef",
"Entity",
"ProcInstr",
"Comment",
"Document",
"DocType",
"DocFragment",
"Notation",
static final int ELEMENT_TYPE = 1;
static final int ATTR_TYPE = 2;
static final int TEXT_TYPE = 3;
static final int CDATA_TYPE = 4;
static final int ENTITYREF_TYPE = 5;
static final int ENTITY_TYPE = 6;
static final int PROCINSTR_TYPE = 7;
static final int COMMENT_TYPE = 8;
static final int DOCUMENT_TYPE = 9;
static final int DOCTYPE_TYPE = 10;
static final int DOCFRAG_TYPE = 11;
static final int NOTATION_TYPE = 12;
// The list of elements to display in the tree
static String[] treeElementNames = {
"node",
// Construct an Adapter node from a DOM node
public XMLTreeNode(org.w3c.dom.Node node) {
domNode = node;
public String toString(){
if (domNode.hasAttributes()){
return domNode.getAttributes().getNamedItem("label").getNodeValue();
}else return domNode.getNodeName();
public boolean isLeaf(){
return (this.getChildCount()==0);
boolean treeElement(String elementName) {
for (int i=0; i<treeElementNames.length; i++) {
if ( elementName.equals(treeElementNames)) return true;
return false;
public int getChildCount() {
if (!compress) {
return domNode.getChildNodes().getLength();
int count = 0;
for (int i=0; i<domNode.getChildNodes().getLength(); i++) {
org.w3c.dom.Node node = domNode.getChildNodes().item(i);
if (node.getNodeType() == ELEMENT_TYPE
&& treeElement( node.getNodeName() ))
// Note:
// Have to check for proper type.
// The DOCTYPE element also has the right name
++count;
return count;
public boolean getAllowsChildren() {
// TODO Auto-generated method stub
return true;
public Enumeration children() {
// TODO Auto-generated method stub
return null;
public TreeNode getParent() {
// TODO Auto-generated method stub
return null;
public TreeNode getChildAt(int searchIndex) {
org.w3c.dom.Node node =
domNode.getChildNodes().item(searchIndex);
if (compress) {
// Return Nth displayable node
int elementNodeIndex = 0;
for (int i=0; i<domNode.getChildNodes().getLength(); i++) {
node = domNode.getChildNodes().item(i);
if (node.getNodeType() == ELEMENT_TYPE
&& treeElement( node.getNodeName() )
&& elementNodeIndex++ == searchIndex) {
break;
return new XMLTreeNode(node);
public int getIndex(TreeNode tnode) {
if (tnode== null) {
throw new IllegalArgumentException("argument is null");
XMLTreeNode child=(XMLTreeNode)tnode;
int count = getChildCount();
for (int i=0; i<count; i++) {
XMLTreeNode n = (XMLTreeNode)this.getChildAt(i);
if (child.domNode == n.domNode) return i;
return -1; // Should never get here.
public class XMLTreeModel2 extends DefaultTreeModel
private Vector listenerList = new Vector();
* This adapter converts the current Document (a DOM) into
* a JTree model.
private Document document;
public XMLTreeModel2 (Document doc){
super(new XMLTreeNode(doc));
this.document=doc;
public Object getRoot() {
//System.err.println("Returning root: " +document);
return new XMLTreeNode(document);
public boolean isLeaf(Object aNode) {
return ((XMLTreeNode)aNode).isLeaf();
public int getChildCount(Object parent) {
XMLTreeNode node = (XMLTreeNode) parent;
return node.getChildCount();
public Object getChild(Object parent, int index) {
XMLTreeNode node = (XMLTreeNode) parent;
return node.getChildAt(index);
public int getIndexOfChild(Object parent, Object child) {
if (parent==null || child==null )
return -1;
XMLTreeNode node = (XMLTreeNode) parent;
return node.getIndex((XMLTreeNode) child);
public void valueForPathChanged(TreePath path, Object newValue) {
// Null. no changes
public void addTreeModelListener(TreeModelListener listener) {
if ( listener != null
&& ! listenerList.contains( listener ) ) {
listenerList.addElement( listener );
public void removeTreeModelListener(TreeModelListener listener) {
if ( listener != null ) {
listenerList.removeElement( listener );
public void fireTreeNodesChanged( TreeModelEvent e ) {
Enumeration listeners = listenerList.elements();
while ( listeners.hasMoreElements() ) {
TreeModelListener listener =
(TreeModelListener) listeners.nextElement();
listener.treeNodesChanged( e );
public void fireTreeNodesInserted( TreeModelEvent e ) {
Enumeration listeners = listenerList.elements();
while ( listeners.hasMoreElements() ) {
TreeModelListener listener =
(TreeModelListener) listeners.nextElement();
listener.treeNodesInserted( e );
public void fireTreeNodesRemoved( TreeModelEvent e ) {
Enumeration listeners = listenerList.elements();
while ( listeners.hasMoreElements() ) {
TreeModelListener listener =
(TreeModelListener) listeners.nextElement();
listener.treeNodesRemoved( e );
public void fireTreeStructureChanged( TreeModelEvent e ) {
Enumeration listeners = listenerList.elements();
while ( listeners.hasMoreElements() ) {
TreeModelListener listener =
(TreeModelListener) listeners.nextElement();
listener.treeStructureChanged( e );
The collapseAll, expandAll code (even though I m pretty sure that's not the problem since they work fine on a normal JTree):
private void collapseAll(TreePath tp){
if (tp==null) return;
Object node=tp.getLastPathComponent();
TreeModel model=tree.getModel();
if (!model.isLeaf(node)){
tree.collapsePath(tp);
for (int i=0;i<model.getChildCount(node);i++){
//for (int i = node.childCount()-4;i>=0;i--){
collapseAll(tp.pathByAddingChild(model.getChild(node,i)));
tree.collapsePath(tp);
private void expandAll(TreePath tp){
if (tp==null) return;
Object node=tp.getLastPathComponent();
TreeModel model=tree.getModel();
if (!model.isLeaf(node)){
tree.expandPath(tp);
for (int i=0;i<model.getChildCount(node);i++){
//for (int i = node.childCount()-4;i>=0;i--){
expandAll(tp.pathByAddingChild(model.getChild(node,i)));Hi,
Iam not facing this problem. To CollapseAll, I do a tree.getModel().reload() which causes all nodes to get collapsed and remain so even if I reopen them manually.
Hope this helps.
cheers,
vidyut -
I have a table to hold a page together.
one of my rows is split into 2 cells. one is supposed to be
360 wide and the other 400. Table is 760 wide.
For some reason the left hand cell which should be 360 has
expanded out to 760. when i look at the table structure the green
guide info says 360 (760). How has this happened and how can I
change it. Every where i look nowhere shows the figures in the
brackets.
Any help would be appreciated as my right hand side cell has
disappeared from the screen
StinkypitgirlAnd when you come back, please put on fresh socks... 8)
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"P@tty Ayers" <[email protected]>
wrote in message
news:[email protected]...
> And then, go take a shower, please.
>
>
> --
> Patty Ayers | www.WebDevBiz.com
> Free Articles on the Business of Web Development
> Web Design Contract, Estimate Request Form, Estimate
Worksheet
> --
>
> "Murray *ACE*" <[email protected]>
wrote in message
> news:[email protected]...
>> Read this -
>>
>>
http://apptools.com/rants/spans.php
>>
>> Then post a link to the page that you have uploaded,
and someone here can
>> help you.
>>
>> --
>> Murray --- ICQ 71997575
>> Adobe Community Expert
>> (If you *MUST* email me, don't LAUGH when you do
so!)
>> ==================
>>
http://www.dreamweavermx-templates.com
- Template Triage!
>>
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
>>
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
>>
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
>> ==================
>>
>>
>> "stinkypitgirl" <[email protected]>
wrote in message
>> news:[email protected]...
>>>I have a table to hold a page together.
>>>
>>> one of my rows is split into 2 cells. one is
supposed to be 360 wide
>>> and the
>>> other 400. Table is 760 wide.
>>>
>>> For some reason the left hand cell which should
be 360 has expanded out
>>> to
>>> 760. when i look at the table structure the
green guide info says 360
>>> (760).
>>> How has this happened and how can I change it.
Every where i look
>>> nowhere shows
>>> the figures in the brackets.
>>>
>>> Any help would be appreciated as my right hand
side cell has disappeared
>>> from
>>> the screen
>>>
>>> Stinkypitgirl
>>>
>>
>>
>
> -
[UIX] Tree - expanded state problem
Hi,
I'm experiencing problemswith my UIX Tree.
In my tree I expanded some nodes (so I can view its contents :))
Normally when I browse to some other pages and come back to the page containing the tree, it remembered the state in which I left it (same nodes still expanded). When I decide to insert new data (through a form page)to the database of which the tree 'feeds' itself, I get errors when browsing back to the page containing the tree, because it remembers its last state (which is nolonger valid, because of new records).
What I want is that I can go back to the page containing my tree, with the tree refreshed (containing my newly inserted data) and still leave those nodes expanded that expanded earlier.
Is this possible? (And is my problem clear? ;) )
Gr.
PhilipI'm afraid our proxy does not support mutable trees. The only way to have it work at all is to create a new proxy when you mutate the tree data, which means you will not be able to save the expanded/collapsed state.
This won't help you now, but ADF UIX is being migrated to ADF Faces which is based on JSF. In that realease mutable trees will be supported. There are early access releases of ADF Faces available here if you're interested:
http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/jsf/index.html -
Table cells - Problem with merged cells
Hi
I was experiencing very weird behavior with my tables until I realized that it was caused by merged cells
My script gives a dialog which allows the user to choose from which column to start and from which row.
As the script iterates through the cells in the selection I was getting weird results
Through using .select() function I was able to see that depending on the column, some times row 5 could be which seems to be row 3!
The reason was because of merged cells in that row
I.e., when some cells are merged together, only the first column of those merged cells is recognized - the others are not
so it comes out that when merging cells from column 3 to 5, column 3 has a cell in that row, columns 4 and 5 do not, and column 6 does!
Is there a way to get around this behavior?
Thanks
DaveyI don't understand the point of your post.
If you're trying to report a problem or "bug" with Pages, that is not the purpose of this user-to-user forum. You should leave feedback for the Pages team on this page.
I've not had a problem opening Word files with tables in Pages. If you're saying Word can't handle tables with merged cells, then don't use merged cells in files you are going to export as Word. Word & Pages must handle merged table cells differently, as I know both can do that. As far as RTF, Pages can open & export as RTF. Again, if you are going to export as RTF, don't use tables. Neither of these is a fault of Pages, just limitations of the formats/programs. -
Editing non-tree cells problem in JTreeTable
Hello all,
I've been playing around with the JTreeTable for quite a while and have a fairly good grip on it. However, I've run into a problem that involves the display of cell data in the non-tree cells.
Assume I have a JTreeTable with one node below the root (and the root node is not displayed). Also assume I've edited some information in one of the other cells in a 5-celled JTreeTable. The JTreeTable behaves normally with regard to editing/setting the values of the table cells.
Now, with the click of a separate button, I programmatically create a new node in the JTree. I update the JTree model with a call to nodeChanged() and nodeStructureChanged() (or I could call reload() - both seem to work).
This successfully adds a node, but in the process clears the entire remainder of the table's cell values. If I call fireTableDataChanged(), then the display of the JTree gets all screwed up (basically what happens to the display if you add/remove nodes, but don't update the display in a JTree). Not only that, but the fireTableDataChanged() method still does not redisplay my cell information for the remainder of the table.
I'm at a loss to figure out what's responsible for this. The tableCellRenderer seems to work just fine until I add node. Even then, the tableCellRenderer for the JTree still works until I call fireTableDataChanged().
Any ideas?
Thank you,
Brion SwansonI use a JTreeTable and in looking at my code, I've
noticed that I make use of treeTable.repaint() fairly
frequently (as whenever I update my stuff).Did the treeTable.updateUI do funky things to your JTree? It does on mine if I do a programmatic node addition or removal (basically any change to the tree structure will cause treeTable.updateUI() to completely destroy the display of the tree). This is a separate issue, but I thought I'd ask anyway since you seem to have run into at least a few of the same problems I'm experiencing.
I don't fully understand your problem<snip/>
do you mean
it drops all edits you have done?Yes, it drops all the edits except the one currently being "edited" (that is, the selected editable cell will not lose it's value).
I had a problem about it dropping the edits I had
done and I resolved them by adding key listeners
and played with the TableCellEditor.Could you elaborate on what you did to the TableCellEditor and which object you had listening to the keys (the table? or the tree? or something else?).
You help is greatly appreciated!
Brion Swanson -
Range Expander Connection Problem
I have installed a range expander. However my laptop continues to connect to the weaker signal from my router. There is a PS3 in the same location as the laptop and that connects to the range expander just fine.
Any suggestions to what the problem might beWell try doing a complete network power cycle i.e., unplug the power cables from the modem & from the router & then plug in the power cable to the modem first once all the lights are solid green you could plug in the power cable to the
router & check out it will definately work!! -
[iPhone] Custom UITableViewController and selecting cell problem.
Hello,
I'm creating a custom table view controller by declaring a UIViewController and adopting the UITableViewDataSource and UITableViewDelegate protocol.
With my current implementation, if I select a cell to transition to another view and then navigate back to the tableview, the cell will remain selected.
There must be some delegate method I am not implementing.
If I update the header file of my table view controller by removing the adopted protocols and subclassing the UITableViewController, I dont have this "selection sticking" problem.
Any ideas as to what I am doing wrong?
Thanks!You're not doing anything wrong, except by omission. If you choose to implement a table view controller as a UIViewController rather than a UITableViewController, you are responsible for controlling selection/deselection of the cells on returning back to the table view from some child view. In the common case where something going on in the child controller affects what cell should be selected/deselected on returning back to the parent table view, this is exactly what you want, because the UITableViewController doesn't always get it right, to sometimes comical effect.
How you would set this up is highly context-dependent.
Doug -
Hi,
I have posted about this problem before, I initailly thought
it was because of spletting and merging cells, however I have
removed these cells and replaces them with nested tables yet the
problem is still here.
On my page www.bethhockley.com/ptihome2.htm I want the images
in a vertical line on the left to line up with the blue
backgrounded text box on the right. In IE it looks just how i want
it, however in Safari the box is far longer than it should be.
Does anyone know how to make it line up in safari without
upsetting the way it currently works in IE?
My external CSS is at
www.bethhockley.com/bethhockleychanged.css
This problem has been driving me crazy for weeks!
Thanks,
Beth H(_seb_) wrote:
> befh wrote:
>> Hi,
>>
>> I have posted about this problem before, I initailly
thought it was
>> because of spletting and merging cells, however I
have removed these
>> cells and replaces them with nested tables yet the
problem is still here.
>>
>> On my page www.bethhockley.com/ptihome2.htm I want
the images in a
>> vertical line on the left to line up with the blue
backgrounded text
>> box on the right. In IE it looks just how i want it,
however in Safari
>> the box is far longer than it should be.
>> Does anyone know how to make it line up in safari
without upsetting
>> the way it currently works in IE?
>>
>> My external CSS is at
www.bethhockley.com/bethhockleychanged.css
>>
>> This problem has been driving me crazy for weeks!
>>
>> Thanks,
>>
>> Beth H
>>
>>
>>
>
> get rid of all the
>
> <p> </p>
>
> you added at the bottom of the blue cell
>
oh and that won't be enough.
The blue background is applied to the table in the cell if I
understand your code correctly?
The blue background should be abpplied to the right cell
(right td) of the table that contains both
the left images and the right text.
The idea is that these two cells will always have the same
height, but the table containing the text
won't be as hight as the left cell...
hm.
seb ( [email protected])
http://webtrans1.com | high-end web
design
Downloads: Slide Show, Directory Browser, Mailing List -
http://martinpaulphotography.com/About.html
The text on my about page is currently a graphic. I want it
to be live text. I deleted the graphic and typed into the cell. It
looked fine in DW but when I preview it in my browser the text is
not constrained vertically within the cell. Instead it shifts the
cell below it out of position? How do I get the text to stay in the
cell without shifting other cells out of position?
Hope this makes sense.
Thanks,
Martin.Hi Martin,
What I had been referring to was just using the image as the
page background, not a table background.
It wouldn't need to go into a table or another container as a
background, it would have just been applied to the body of the
page.
Regardless, I see what you mean by the logo being different
on the home page so here's another way which should work for you.
There are any number of ways to do this and variations on the
things I'm about to mention, but this should be a good place to
start.
So, it's just the logo part of the image that's different
between the pages, and that looks like it's about the top 1/4 of
the image.
The bottom 3/4 of the image is the same on every page.
Slice your home page image horizontally just below the logo
reflection.
Now you have two images, the top half with the logo and the
bottom half.
The bottom half is the same on all pages, so you can just use
that on all pages.
You'll need another image, exactly the same as this top image
but with the weaker logo for the other pages.
You have one more image: The image that tiles your
background.
So, you'll have 4 images all together used in the basic page
design.
To avoid confusion, I'll call them bright logo, weak logo,
bottom half and tile.
You aren't going to need all of the javascript anymore
either, as you won't need to load all the image slices or use
rollover images.
This example will build the "About Us" page you originally
asked about.
So, start with a new page where all you have are the basics:
doctype, html, head, body, title and your meta tags.
By the way, change this tag: <META
NAME="CONTACT_ADDR"="[email protected]>
to this:
<META NAME="CONTACT_ADDR" CONTENT="[email protected]">
Let's deal with the tiling background first.
You have that applied as a table background currently, but
you can just apply it to the body of the page so there's no need
for a 100% wide table for a background effect.
Just before your </head> tag, add this CSS to style the
body so it looks like this :
<style type="text/css">
body {
padding: 0;
margin: 0 0 0 0;
/*/*/margin: 0 0 0 0; /* */
font-family: Arial, Helvetica, sans-serif;
text-align: left;
font-size:80%;
color: #CCCCCC;
background-image: url(graphics/tile_background.jpg);
background-repeat: repeat;
</style>
</head>
<body>
</body>
</html>
(adjust later to change font color (color:) font size, font
family, etc)
Note the background image and background repeat lines. This
will tile that diamond as the entire page background.
Next, add a table that is 1 column and 2 rows.
Give it a center align and zero out the attributes. Give it a
width that's the same as your whole image:
<table width="937" border="0" align="center"
cellpadding="0" cellspacing="0">
Next, insert the weak logo image into the top row (top cell).
The bottom half of the image will be used as the background
image of the second row in this table.
You won't need to insert it into the second row; use CSS to
make it the background.
Because this is a background image, it won't act like an
inserted image and stretch the cell to the same height as the
image.
We'll take care of that in a minute.
The first step is to define a style for this table cell.
We'll make it a class and call it "content"
Insert this right before the </style> tag.
.content {
background-image: url(graphics/bottomhalf.jpg);
background-repeat: no-repeat;
background-position: center top;
Then, assign this class to the cell that is the second row.
<td class="content">
You won't see the whole image yet, as the second row doesn't
have enough content to make it tall enough to see the whole
background image. We'll fix that in a minute.
Next, insert a table into the second row. Make the table 1
row, 3 columns and 100% wide.
<table width="100%" border="0" cellspacing="0"
cellpadding="0">
Don't assign any widths to the three columns right now.
The first column will hold your navigation, the middle column
will be your about us text content, and the last column is going to
control the height of the table so we can see that whole
"bottomhalf" background image.
For the first column, assign a vertical align of "top".
Then, in that first column, insert a table with 1 column and
as many rows as needed for your navigation. Give this table a
desired width in pixels.
Type the name of the link in each row.
In the third column, insert a transparent gif that is 1px
wide and the same number of pixels high as your "bottomhalf" image
is.
This forces this table and the row it is in (.content) to be
the same height as the bottomhalf image, so you see the whole
thing.
Now, give the center column a width of 100%. This will make
the first cell hug the navigation table and the third cell hug the
spacer image. The center cell will fill the remaining area.
It should look something like this now:
<body>
<table width="937" border="0" align="center"
cellpadding="0" cellspacing="0">
<tr>
<td><img src="graphics/weaklogo.jpg" width="937"
height="185" alt="blah"></td>
</tr>
<tr>
<td class="content"><table width="100%" border="0"
cellspacing="0" cellpadding="0">
<tr>
<td valign="top"> <table width="200" border="0"
cellspacing="0" cellpadding="0">
<tr>
<td>Home</td>
</tr>
<tr>
<td>About</td>
</tr>
<tr>
<td>Gallery</td>
</tr>
<tr>
<td>Rates</td>
</tr>
<tr>
<td>Login</td>
</tr>
<tr>
<td>Content</td>
</tr>
</table></td>
<td width="100%"><p>All about us text and more
and more</p></td>
<td><img src="graphics/spacer.gif" alt="" width="1"
height="500"></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
Apply links to the navigation text.
I have to run, but this is a good start.
Next is to use CSS to style the links so they change color on
hover, and to control the positioning of them as well as the
positioning, line spacing, color , etc,etc of the about us text.
This design will still be somewhat at the mercy of the user
if the user has an enormous text size setting in their browser.
This would be very rare I think and would just mean the text
would extend lower than the image. That's the string that's
attached to using a large image as the whole background instead of
a repeating image or a solid color. The positive is that the image
won't shift in pieces or break like it does now.
Tim
Maybe you are looking for
-
I got my new Haswell MacBook Air just 2 days ago, and also, this is my first ever MacBook. So, I just noticed something in the System Information app that worries me. I noticed that the full charge capaciy is greater than the charge remaining, even o
-
Workflow from capture to publish
I am just starting in the world of Wedding and Event Videography. I love the excitement and emotion of weddings and feel privileged to be able to provide a record of the day. And I don't mind the long hours either. I am having trouble though with my
-
Using WEBADI with Oracle Oepn Office 3.1
My client has ask if WEBADI will work with any other product other than MicroSoft Excell. They would like to use Oracle Open Office 3.1 if possible.
-
I am using jsp:plugin tag to put my applet in jsp. The default jre verion of the jsp:plugin is 1.2. I want users to use jre 1.4. How can I wite the attribute for the tag? <jsp:plugin type="applet" code="mypackage.MyApplet" //any other attribute I sho
-
Infotype Operation: Infotype with TABNR and HRT tables
Hi all, Can anyone share the code for updating the infotypes and corresponding HRT tables having TABNR field for example infotype 1018 and HRT1018. Thanks, Shilpa