package io.continuum.bokeh
package widgets

@model abstract class Layout extends Widget {
    object width extends Field[Int]
    object height extends Field[Int]
}

@model abstract class BaseBox extends Layout {
    object children extends Field[List[Widget]]
}

@model class HBox extends BaseBox

@model class VBox extends BaseBox

package io.continuum.bokeh
package widgets

@model abstract class Layout extends Widget {
    object width extends Field[Int]
    object height extends Field[Int]
}

@model class HBox extends Layout {
    object children extends Field[List[Widget]]
}

@model class VBox extends Layout {
    object children extends Field[List[Widget]]
}

--- 
+++ 
@@ -6,10 +6,10 @@
     object height extends Field[Int]
 }
 
-@model class HBox extends Layout {
+@model abstract class BaseBox extends Layout {
     object children extends Field[List[Widget]]
 }
 
-@model class VBox extends Layout {
-    object children extends Field[List[Widget]]
-}
+@model class HBox extends BaseBox
+
+@model class VBox extends BaseBox
Make {H,V}Box inherit from BaseBox
