Exemple #1
0
 public override bool can_hold(element el, white_space ws)
 {
     if (!el.is_inline_box)
     {
         return(false);
     }
     if (el.is_break())
     {
         return(false);
     }
     if (ws == white_space.nowrap || ws == white_space.pre)
     {
         return(true);
     }
     if (_box_left + _width + el.width + el.get_inline_shift_left() + el.get_inline_shift_right() > _box_right)
     {
         return(false);
     }
     return(true);
 }
Exemple #2
0
 public override bool can_hold(element el, white_space ws) => _element != null || el.is_inline_box ? false : true;
Exemple #3
0
 public abstract bool can_hold(element el, white_space ws);