Ignore:
Timestamp:
Feb 6, 2011 7:19:06 PM (4 years ago)
Author:
jylam
Message:
  • Almost correct td width handling
File:
1 edited

Legend:

Unmodified
Added
Removed
  • gaycko/trunk/src/render/position.c

    r4761 r4762  
    2727                gaycko_get_position(node->children[c], parent);
    2828                x+=node->children[c]->properties->width;
     29               
     30               
     31                gaycko_fix_table(node->children[c]);
    2932                if(node->children[c]->properties->width>w) {
    3033                    w = (node->children[c]->properties->width);
    3134                }
    32                 gaycko_fix_table(node->children[c]);
    3335                break;
    3436               
     
    100102        y+=node->children[c]->properties->height;
    101103        h+=node->children[c]->properties->height;
    102        
    103104    }
    104105   
     
    108109
    109110
    110 
    111111void gaycko_add_node_x(gNode *node, unsigned int add) {
    112112
    113113    unsigned int e = 0;
    114114    for(e = 0 ; e < node->children_count; e++) {
    115                 node->children[e]->properties->x +=add;
     115                //gaycko_add_node_x(node->children[e], add);
     116        //gaycko_add_node_x(node->children[e], add);
     117        node->children[e]->properties->width += add;
     118        node->children[e]->properties->x += add;       
    116119    }
     120    node->properties->x += add;
     121   
    117122}
    118123
Note: See TracChangeset for help on using the changeset viewer.