Move channels panel into collab and rename to collab panel
remove contacts popover and add to collab panel
This commit is contained in:
parent
fe5db3035f
commit
7f9df6dd24
18 changed files with 95 additions and 292 deletions
|
@ -47,6 +47,10 @@ pub trait Element<V: View>: 'static {
|
|||
type LayoutState;
|
||||
type PaintState;
|
||||
|
||||
fn view_name(&self) -> &'static str {
|
||||
V::ui_name()
|
||||
}
|
||||
|
||||
fn layout(
|
||||
&mut self,
|
||||
constraint: SizeConstraint,
|
||||
|
@ -267,8 +271,8 @@ impl<V: View, E: Element<V>> AnyElementState<V> for ElementState<V, E> {
|
|||
| ElementState::PostLayout { mut element, .. }
|
||||
| ElementState::PostPaint { mut element, .. } => {
|
||||
let (size, layout) = element.layout(constraint, view, cx);
|
||||
debug_assert!(size.x().is_finite());
|
||||
debug_assert!(size.y().is_finite());
|
||||
debug_assert!(size.x().is_finite(), "Element for {:?} had infinite x size after layout", element.view_name());
|
||||
debug_assert!(size.y().is_finite(), "Element for {:?} had infinite x size after layout", element.view_name());
|
||||
|
||||
result = size;
|
||||
ElementState::PostLayout {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue