Problem:

I created an Aikau page from the Aikau tutorial example. If I call my service with url ...hdp/ws/... , then the result page is some pixel wider than a browser tab and it appears a horizontal scroll bar.

1. Solution

call this service with ...dp/ws/... url and add the header and footer manually. See the implementation of faceted-search in Alfresco-Share in github.

  1. import share-header.lib.js: <import resource="classpath:/alfresco/site-webscripts/org/alfresco/share/imports/share-header.lib.js">
  2. import share-footer.lib.js: <import resource="classpath:/alfresco/site-webscripts/org/alfresco/share/imports/share-footer.lib.js">
  3. add default heder services: var services = getHeaderServices();
  4. add your services: services.push({name: "alfresco/services/SearchService", ...
  5. add your widgets and services to the model, use for it a method from share-footer.lib: model.jsonModel = getFooterModel(services, widgets);

2. Solution

call this service with ...hdp/ws/... url again and patch only the hybrid-page.get.html.ftl template:

  1. copy the file hybrid-page.get.html.ftl from Alfresco-Sources sto your share project: /src/main/resources/alfresco/web-extension/site-webscripts/org/alfresco/share/page-templates/hybrid-page.get.html.ftl
  2. add the standard Alfresco-Wrapper to the templateBody: <div id="doc3">

This wrapper exists in every Alfresco template, but miss in Aikau (Aikau version 1.0.89).